Skip to content

Commit

Permalink
Remove unused destinationFee
Browse files Browse the repository at this point in the history
  • Loading branch information
yrong committed May 5, 2024
1 parent 2847751 commit bfdff26
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion contracts/src/Gateway.sol
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,7 @@ contract Gateway is IGateway, IInitializable, IUpgradable {
}

/// @inheritdoc IGateway
function quoteSendCallFee(uint128 destinationFee) external view returns (uint256) {
function quoteSendCallFee() external view returns (uint256) {
Costs memory costs = _calculateTransactCost();
return _calculateFee(costs);
}
Expand Down
2 changes: 1 addition & 1 deletion contracts/src/interfaces/IGateway.sol
Original file line number Diff line number Diff line change
Expand Up @@ -113,5 +113,5 @@ interface IGateway {
) external payable;

/// @dev Quote a fee in Ether for transact
function quoteSendCallFee(uint128 destinationFee) external view returns (uint256);
function quoteSendCallFee() external view returns (uint256);
}
4 changes: 2 additions & 2 deletions contracts/test/Gateway.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -895,7 +895,7 @@ contract GatewayTest is Test {
function testTransactFromSovereignAccountWithFee() public {
bytes memory payload = SubstrateTypes.Transact(account1, 0x01, 1, Weight(1, 1), bytes("0x1"));
console.logBytes(payload);
uint256 fee = IGateway(address(gateway)).quoteSendCallFee(1);
uint256 fee = IGateway(address(gateway)).quoteSendCallFee();
assertEq(fee, 2500000000000000);
vm.expectEmit(true, false, false, true);
emit IGateway.OutboundMessageAccepted(penpalParaID.into(), 1, messageID, payload);
Expand All @@ -906,7 +906,7 @@ contract GatewayTest is Test {
}

function testQuoteSendCallFee() public {
uint256 fee = IGateway(address(gateway)).quoteSendCallFee(1);
uint256 fee = IGateway(address(gateway)).quoteSendCallFee();
assertEq(fee, 2500000000000000);
}
}

0 comments on commit bfdff26

Please sign in to comment.