Skip to content

Commit 4988795

Browse files
Merge pull request #494 from ensdomains/fix/deploy-multicalll
fix: deploy multicall
2 parents d180d12 + afd359f commit 4988795

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

deploy/dnsregistrar/20_set_tlds.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,12 @@ export default deployScript(
105105
console.log(` - Processing ${suffixes.length} public suffixes`)
106106

107107
// Check if multicall exists, deploy if needed
108-
const multicallExistingBytecode = await network.provider.request({
109-
method: 'eth_getCode',
110-
params: [multicallAddress, 'latest'],
111-
})
108+
const multicallExistingBytecode = await network.provider
109+
.request({
110+
method: 'eth_getCode',
111+
params: [multicallAddress, 'latest'],
112+
})
113+
.then((bytecode: Hex) => bytecode !== '0x')
112114

113115
if (!multicallExistingBytecode && !config.saveDeployments) {
114116
console.log(' - Deploying Multicall')

0 commit comments

Comments
 (0)