Test passes
This commit is contained in:
parent
96c66e3551
commit
b51b8c387e
|
@ -1328,18 +1328,20 @@ contract TestCoreRelayer is Test {
|
||||||
setup.targetChainId, gasParams.targetGasLimit, address(setup.source.relayProvider)
|
setup.targetChainId, gasParams.targetGasLimit, address(setup.source.relayProvider)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
uint256 wormholeFee = setup.source.wormhole.messageFee();
|
||||||
|
|
||||||
vm.expectRevert(abi.encodeWithSignature("RelayProviderDoesNotSupportTargetChain()"));
|
vm.expectRevert(abi.encodeWithSignature("RelayProviderDoesNotSupportTargetChain()"));
|
||||||
setup.source.integration.sendMessageWithRefundAddress{
|
setup.source.integration.sendMessageWithRefundAddress{value: maxTransactionFee + uint256(3) * wormholeFee}(
|
||||||
value: maxTransactionFee + uint256(3) * setup.source.wormhole.messageFee()
|
message, 32, address(setup.target.integration), address(setup.target.refundAddress)
|
||||||
}(message, 32, address(setup.target.integration), address(setup.target.refundAddress));
|
);
|
||||||
|
|
||||||
setup.source.relayProvider.updateDeliveryAddress(
|
setup.source.relayProvider.updateDeliveryAddress(
|
||||||
setup.targetChainId, setup.source.relayProvider.getDeliveryAddress(32)
|
setup.targetChainId, setup.source.relayProvider.getDeliveryAddress(32)
|
||||||
);
|
);
|
||||||
vm.expectRevert(abi.encodeWithSignature("RelayProviderDoesNotSupportTargetChain()"));
|
vm.expectRevert(abi.encodeWithSignature("RelayProviderDoesNotSupportTargetChain()"));
|
||||||
setup.source.integration.sendMessageWithRefundAddress{
|
setup.source.integration.sendMessageWithRefundAddress{value: maxTransactionFee + uint256(3) * wormholeFee}(
|
||||||
value: maxTransactionFee + uint256(3) * setup.source.wormhole.messageFee()
|
message, setup.targetChainId, address(setup.target.integration), address(setup.target.refundAddress)
|
||||||
}(message, setup.targetChainId, address(setup.target.integration), address(setup.target.refundAddress));
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue