From b51b8c387e549d4b807e531083f4d4437742dbbd Mon Sep 17 00:00:00 2001 From: derpy-duck <115193320+derpy-duck@users.noreply.github.com> Date: Thu, 2 Mar 2023 16:15:33 +0000 Subject: [PATCH] Test passes --- ethereum/forge-test/CoreRelayer.t.sol | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/ethereum/forge-test/CoreRelayer.t.sol b/ethereum/forge-test/CoreRelayer.t.sol index 4d583f9..6808a41 100644 --- a/ethereum/forge-test/CoreRelayer.t.sol +++ b/ethereum/forge-test/CoreRelayer.t.sol @@ -1328,18 +1328,20 @@ contract TestCoreRelayer is Test { setup.targetChainId, gasParams.targetGasLimit, address(setup.source.relayProvider) ); + uint256 wormholeFee = setup.source.wormhole.messageFee(); + vm.expectRevert(abi.encodeWithSignature("RelayProviderDoesNotSupportTargetChain()")); - setup.source.integration.sendMessageWithRefundAddress{ - value: maxTransactionFee + uint256(3) * setup.source.wormhole.messageFee() - }(message, 32, address(setup.target.integration), address(setup.target.refundAddress)); + setup.source.integration.sendMessageWithRefundAddress{value: maxTransactionFee + uint256(3) * wormholeFee}( + message, 32, address(setup.target.integration), address(setup.target.refundAddress) + ); setup.source.relayProvider.updateDeliveryAddress( setup.targetChainId, setup.source.relayProvider.getDeliveryAddress(32) ); vm.expectRevert(abi.encodeWithSignature("RelayProviderDoesNotSupportTargetChain()")); - setup.source.integration.sendMessageWithRefundAddress{ - value: maxTransactionFee + uint256(3) * setup.source.wormhole.messageFee() - }(message, setup.targetChainId, address(setup.target.integration), address(setup.target.refundAddress)); + setup.source.integration.sendMessageWithRefundAddress{value: maxTransactionFee + uint256(3) * wormholeFee}( + message, setup.targetChainId, address(setup.target.integration), address(setup.target.refundAddress) + ); } /**