Skip to content

Commit

Permalink
comment on multicall usage
Browse files Browse the repository at this point in the history
  • Loading branch information
TateB committed Jul 5, 2024
1 parent 261f493 commit dffbfe4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions deploy/dnsregistrar/20_set_tlds.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ import {
} from 'viem'
import { dnsEncodeName } from '../../test/fixtures/dnsEncodeName.js'

// using the Multicall3 contract, which is deployed on pretty much every live chain in existence at 0xcA11bde05977b3631167028862bE2a173976CA11
// for devnet deployments, the same contract address can be used since we can use the pre-signed deploy transaction
// using the multicall contract allows us to batch many enableNode txs together
// for live network deployments, this is useful to save total gas used
// for devnet network deployments, this is useful to save a lot of time (many minutes)

const multicallAddress = '0xcA11bde05977b3631167028862bE2a173976CA11'
const multicallPreparationAddress = '0x1E91557322053858cf75cFE5b2d030D27cb2cA8D'
const multicallDeployTransaction =
Expand Down

0 comments on commit dffbfe4

Please # to comment.