Skip to content

Commit

Permalink
test: set new gas limits
Browse files Browse the repository at this point in the history
  • Loading branch information
reednaa committed May 3, 2024
1 parent 60249e7 commit 87af852
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ contract GasSpendControlTest is TestCommon {
messageIdentifier,
_DESTINATION_ADDRESS_APPLICATION,
destinationFeeRecipient,
uint48(0x36996), // Gas used
uint48(0x36969), // Gas used
uint64(1),
bytes1(0xff), // This states that the call went wrong.
message
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ contract processPacketNoReceiveTest is TestCommon {
messageIdentifier,
_DESTINATION_ADDRESS_THIS,
feeRecipient,
uint48(0x8369), // Gas used
uint48(0x833c), // Gas used
uint64(1),
abi.encodePacked(bytes1(0xff)),
message
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ contract CallReentryTest is TestCommon, ICrossChainReceiver {
messageIdentifier,
_DESTINATION_ADDRESS_APPLICATION,
feeRecipient,
uint48(0xfcd8), // Gas used
uint48(0xfcb6), // Gas used
uint64(1),
uint8(1)
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ contract processPacketCallTest is TestCommon {
messageIdentifier,
_DESTINATION_ADDRESS_APPLICATION,
feeRecipient,
uint48(0x7d7f), // Gas used
uint48(0x7d49), // Gas used
uint64(1),
mockAck
)
Expand Down
4 changes: 2 additions & 2 deletions test/TestCommon.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ interface ICansubmitMessage is IMessageEscrowStructs{

contract TestCommon is Test, IMessageEscrowEvents, IMessageEscrowStructs {

uint256 constant GAS_SPENT_ON_SOURCE = 6642;
uint256 constant GAS_SPENT_ON_DESTINATION = 32127;
uint256 constant GAS_SPENT_ON_SOURCE = 6888;
uint256 constant GAS_SPENT_ON_DESTINATION = 32073;

bytes32 constant _DESTINATION_IDENTIFIER = bytes32(uint256(0x123123) + uint256(2**255));

Expand Down

0 comments on commit 87af852

Please sign in to comment.