Skip to content

Commit

Permalink
try changing the contract to trigger gas diffs
Browse files Browse the repository at this point in the history
  • Loading branch information
ChiTimesChi committed Sep 26, 2024
1 parent 44b0c3d commit 4504e3c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/contracts-rfq/contracts/FastBridgeV2.sol
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ contract FastBridgeV2 is Admin, IFastBridgeV2, IFastBridgeV2Errors {
}

/// @inheritdoc IFastBridge
function getBridgeTransaction(bytes memory request) public pure returns (BridgeTransaction memory) {
function getBridgeTransaction(bytes calldata request) public pure returns (BridgeTransaction memory) {
return abi.decode(request, (BridgeTransaction));
}

Expand Down Expand Up @@ -126,12 +126,12 @@ contract FastBridgeV2 is Admin, IFastBridgeV2, IFastBridgeV2Errors {
}

/// @inheritdoc IFastBridge
function relay(bytes memory request) external payable {
function relay(bytes calldata request) external payable {
relay(request, msg.sender);
}

/// @inheritdoc IFastBridgeV2
function relay(bytes memory request, address relayer) public payable {
function relay(bytes calldata request, address relayer) public payable {
bytes32 transactionId = keccak256(request);
BridgeTransaction memory transaction = getBridgeTransaction(request);
if (transaction.destChainId != uint32(block.chainid)) revert ChainIncorrect();
Expand Down Expand Up @@ -213,12 +213,12 @@ contract FastBridgeV2 is Admin, IFastBridgeV2, IFastBridgeV2Errors {
}

/// @inheritdoc IFastBridgeV2
function claim(bytes memory request) external {
function claim(bytes calldata request) external {
claim(request, address(0));
}

/// @inheritdoc IFastBridge
function claim(bytes memory request, address to) public {
function claim(bytes calldata request, address to) public {
bytes32 transactionId = keccak256(request);
BridgeTransaction memory transaction = getBridgeTransaction(request);

Expand Down Expand Up @@ -262,7 +262,7 @@ contract FastBridgeV2 is Admin, IFastBridgeV2, IFastBridgeV2Errors {
}

/// @inheritdoc IFastBridge
function refund(bytes memory request) external {
function refund(bytes calldata request) external {
bytes32 transactionId = keccak256(request);
BridgeTransaction memory transaction = getBridgeTransaction(request);

Expand Down

0 comments on commit 4504e3c

Please sign in to comment.