Skip to content

Commit 6294969

Browse files
scnaleevan-gray
authored andcommitted
clients/js: adds WormholeRelayer addresses to info contract
1 parent c512800 commit 6294969

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

clients/js/src/cmds/info/contract.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import {
33
ChainName,
44
assertChain,
55
} from "@certusone/wormhole-sdk/lib/esm/utils/consts";
6+
import { relayer } from "@certusone/wormhole-sdk";
67
import yargs from "yargs";
78
import { CONTRACTS } from "../../consts";
89
import { assertNetwork } from "../../utils";
@@ -24,7 +25,7 @@ export const builder = (y: typeof yargs) =>
2425
} as const)
2526
.positional("module", {
2627
describe: "Module to query",
27-
choices: ["Core", "NFTBridge", "TokenBridge"],
28+
choices: ["Core", "NFTBridge", "TokenBridge", "WormholeRelayer"],
2829
demandOption: true,
2930
} as const);
3031
export const handler = async (
@@ -52,6 +53,9 @@ export const handler = async (
5253
case "TokenBridge":
5354
addr = CONTRACTS[network][chain].token_bridge;
5455
break;
56+
case "WormholeRelayer":
57+
addr = relayer.RELAYER_CONTRACTS[network][chain]?.wormholeRelayerAddress;
58+
break;
5559
default:
5660
impossible(module);
5761
}

0 commit comments

Comments
 (0)