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 25, 2024
1 parent 9b1a169 commit 91bc03e
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 @@ -70,7 +70,7 @@ contract FastBridgeV2 is Admin, IFastBridgeV2 {
}

/// @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 @@ -125,12 +125,12 @@ contract FastBridgeV2 is Admin, IFastBridgeV2 {
}

/// @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 @@ -211,12 +211,12 @@ contract FastBridgeV2 is Admin, IFastBridgeV2 {
}

/// @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 @@ -260,7 +260,7 @@ contract FastBridgeV2 is Admin, IFastBridgeV2 {
}

/// @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 91bc03e

Please sign in to comment.