Skip to content

Commit

Permalink
cli: update NTT CLI to use chain-specific specialRelayer addresses fo…
Browse files Browse the repository at this point in the history
…r BSC and Avalanche (#562)
  • Loading branch information
evgeniko authored Nov 30, 2024
1 parent f5125e2 commit 309d59f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion cli/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1115,7 +1115,15 @@ async function deployEvm<N extends Network, C extends Chain>(
}

const rpc = ch.config.rpc;
const specialRelayer = "0x63BE47835c7D66c4aA5B2C688Dc6ed9771c94C74"; // TODO: how to configure this?
// TODO: how to make specialRelayer configurable??
let specialRelayer: string;
if (ch.chain === "Avalanche") {
specialRelayer = "0x1a19d8a194630642f750376Ae72b4eDF5aDFd25F";
} else if (ch.chain === "Bsc") {
specialRelayer = "0x8C56eE9cd232d23541a697C0eBd3cA597DE3c88D";
} else {
specialRelayer = "0x63BE47835c7D66c4aA5B2C688Dc6ed9771c94C74";
}

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

0 comments on commit 309d59f

Please sign in to comment.