Skip to content

Commit b9dae0b

Browse files
authored
Checksum multicall address on addNetwork script (#891)
1 parent 83e8647 commit b9dae0b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/addNetwork.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
const networks = require('../src/networks.json');
2+
import { getAddress } from '@ethersproject/address';
23

34
if (process.argv.length < 7) {
45
console.log(
@@ -10,7 +11,7 @@ if (process.argv.length < 7) {
1011
const args = process.argv.slice(2);
1112
const chainId = args[0];
1213
const explorer = args[1];
13-
const multicall = args[2];
14+
const multicall = getAddress(args[2]);
1415
const start = args[3];
1516
const logo = args[4];
1617
const networkName = args[5];

0 commit comments

Comments
 (0)