From 95daba4e46bb982fd1a99930d7ccd759290856ac Mon Sep 17 00:00:00 2001 From: parodime Date: Tue, 1 Oct 2024 05:27:38 -0400 Subject: [PATCH] named vars on overloads --- packages/contracts-rfq/contracts/FastBridgeV2.sol | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/contracts-rfq/contracts/FastBridgeV2.sol b/packages/contracts-rfq/contracts/FastBridgeV2.sol index 1cf1a494e1..b6d49ac9dd 100644 --- a/packages/contracts-rfq/contracts/FastBridgeV2.sol +++ b/packages/contracts-rfq/contracts/FastBridgeV2.sol @@ -31,6 +31,7 @@ contract FastBridgeV2 is Admin, IFastBridgeV2, IFastBridgeV2Errors { /// @dev to prevent replays uint256 public nonce; + // @dev the block the contract was deployed at uint256 public immutable deployBlock; @@ -91,18 +92,17 @@ contract FastBridgeV2 is Admin, IFastBridgeV2, IFastBridgeV2Errors { /// @inheritdoc IFastBridge function relay(bytes memory request) external payable { - relay(request, msg.sender); + relay({request: request, relayer: msg.sender}); } /// @inheritdoc IFastBridge function prove(bytes memory request, bytes32 destTxHash) external { - bytes32 transactionId = keccak256(request); - prove(transactionId, destTxHash, msg.sender); + prove({transactionId: keccak256(request), destTxHash: destTxHash, relayer: msg.sender}); } /// @inheritdoc IFastBridgeV2 function claim(bytes memory request) external { - claim(request, address(0)); + claim({request: request, to: address(0)}); } /// @inheritdoc IFastBridge