Skip to content

Commit 309d59f

Browse files
authored
cli: update NTT CLI to use chain-specific specialRelayer addresses for BSC and Avalanche (#562)
1 parent f5125e2 commit 309d59f

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

cli/src/index.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1115,7 +1115,15 @@ async function deployEvm<N extends Network, C extends Chain>(
11151115
}
11161116

11171117
const rpc = ch.config.rpc;
1118-
const specialRelayer = "0x63BE47835c7D66c4aA5B2C688Dc6ed9771c94C74"; // TODO: how to configure this?
1118+
// TODO: how to make specialRelayer configurable??
1119+
let specialRelayer: string;
1120+
if (ch.chain === "Avalanche") {
1121+
specialRelayer = "0x1a19d8a194630642f750376Ae72b4eDF5aDFd25F";
1122+
} else if (ch.chain === "Bsc") {
1123+
specialRelayer = "0x8C56eE9cd232d23541a697C0eBd3cA597DE3c88D";
1124+
} else {
1125+
specialRelayer = "0x63BE47835c7D66c4aA5B2C688Dc6ed9771c94C74";
1126+
}
11191127

11201128
const provider = new ethers.JsonRpcProvider(rpc);
11211129
const abi = ["function decimals() external view returns (uint8)"];

0 commit comments

Comments
 (0)