Skip to content

Commit

Permalink
fixup! feat(hardhat): add stargate jump
Browse files Browse the repository at this point in the history
test regr
  • Loading branch information
xykota committed Sep 25, 2023
1 parent 6e8a608 commit 2fe04c1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/hardhat/test/foundry/WarpLink.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -1098,16 +1098,16 @@ contract WarpLinkTest is WarpLinkTestBase {
(uint8)(1), // Command count
(uint8)(COMMAND_TYPE_JUMP_STARGATE),
(uint16)(106), // dstChainId (Avalanche)
(uint256)(1), // srcPoolId (USDC, Ethereum)
(uint256)(1) // dstPoolId (USDC, Avalanche)
(uint8)(1), // srcPoolId (USDC, Ethereum)
(uint8)(1) // dstPoolId (USDC, Avalanche)
);

uint256 expectedSwapOut = 1000 * (10 ** 6);

(uint256 nativeWei, ) = IStargateRouter(Mainnet.STARGATE_ROUTER_ADDR).quoteLayerZeroFee({
_dstChainId: 106,
_functionType: 1, // swap remote
_toAddress: abi.encode(uint256(uint160(USER))),
_toAddress: abi.encodePacked(USER),
_transferAndCallPayload: '',
_lzTxParams: IStargateRouter.lzTxObj({
dstGasForCall: 0,
Expand Down Expand Up @@ -1526,7 +1526,7 @@ contract WarpLinkGoerliTest is WarpLinkTestBase {
(uint256 nativeWei, ) = IStargateRouter(Goerli.STARGATE_ROUTER_ADDR).quoteLayerZeroFee({
_dstChainId: 10132,
_functionType: 1, // swap remote
_toAddress: abi.encode(uint256(uint160(USER))),
_toAddress: abi.encodePacked(USER),
_transferAndCallPayload: '',
_lzTxParams: IStargateRouter.lzTxObj({
dstGasForCall: 0,
Expand Down

0 comments on commit 2fe04c1

Please sign in to comment.