File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -755,6 +755,17 @@ contract EverclearTokenBridgeForkTest is BaseEverclearTokenBridgeForkTest {
755755 uint256 initialBalance = weth.balanceOf (ALICE);
756756 uint256 initialBridgeBalance = weth.balanceOf (address (bridge));
757757
758+ // Get the gas payment quote
759+ Quote[] memory quotes = bridge.quoteTransferRemote (
760+ OPTIMISM_DOMAIN,
761+ RECIPIENT,
762+ amount
763+ );
764+ uint256 gasPayment = quotes[0 ].amount;
765+
766+ // Give Alice ETH for gas payment
767+ vm.deal (ALICE, gasPayment);
768+
758769 // Test the transfer - it may succeed or fail depending on adapter state
759770 vm.prank (ALICE);
760771 // We don't want to check _intentId, as it's not used
@@ -769,7 +780,11 @@ contract EverclearTokenBridgeForkTest is BaseEverclearTokenBridgeForkTest {
769780 _tokenFee: FEE_AMOUNT,
770781 _nativeFee: 0
771782 });
772- bridge.transferRemote (OPTIMISM_DOMAIN, RECIPIENT, amount);
783+ bridge.transferRemote {value: gasPayment}(
784+ OPTIMISM_DOMAIN,
785+ RECIPIENT,
786+ amount
787+ );
773788
774789 // Verify the balance changes
775790 // Alice should have lost the transfer amount and the fee
You can’t perform that action at this time.
0 commit comments