Skip to content

Commit

Permalink
fix: wormhole ar relayer for base in scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
sujithsomraaj committed Jan 8, 2024
1 parent b9c1fc9 commit e84d517
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion script/Abstract.Deploy.Single.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ abstract contract AbstractDeploySingle is Script {

/// @dev uses CREATE2
address public wormholeRelayer = 0x27428DD2d3DD32A4D7f7C497eAaa23130d894911;
address public wormholeBaseRelayer = 0x706F82e9bb5b0813501714Ab5974216704980e31;

/// @dev superformChainIds

Expand Down Expand Up @@ -463,7 +464,8 @@ abstract contract AbstractDeploySingle is Script {
vars.wormholeImplementation = address(new WormholeARImplementation{ salt: salt }(vars.superRegistryC));
contracts[vars.chainId][bytes32(bytes("WormholeARImplementation"))] = vars.wormholeImplementation;

WormholeARImplementation(vars.wormholeImplementation).setWormholeRelayer(wormholeRelayer);
address wormholeRelayerConfig = vars.chainId == BASE ? wormholeBaseRelayer : wormholeRelayer;
WormholeARImplementation(vars.wormholeImplementation).setWormholeRelayer(wormholeRelayerConfig);
WormholeARImplementation(vars.wormholeImplementation).setRefundChainId(wormhole_chainIds[trueIndex]);

/*
Expand Down

0 comments on commit e84d517

Please sign in to comment.