Skip to content

Commit

Permalink
named vars on overloads
Browse files Browse the repository at this point in the history
  • Loading branch information
parodime committed Oct 1, 2024
1 parent 72e5e88 commit 95daba4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/contracts-rfq/contracts/FastBridgeV2.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 95daba4

Please sign in to comment.