Skip to content

Commit

Permalink
setting deadline to max
Browse files Browse the repository at this point in the history
  • Loading branch information
benesjan committed Mar 4, 2024
1 parent 22acc85 commit 5bcab84
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion l1-contracts/src/core/messagebridge/NewInbox.sol
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ contract NewInbox {
content: _content,
secretHash: _secretHash,
// TODO: nuke the following 2 values from the struct once the new message model is in place
deadline: 0,
deadline: 2 ** 32 - 1,
fee: 0
});

Expand Down
6 changes: 3 additions & 3 deletions l1-contracts/test/NewInbox.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ contract NewInboxTest is Test {
inbox.consume();
}

function testFuzzSendL2Msg(DataStructures.L1ToL2Msg memory _message) public {
function testFuzzInsert(DataStructures.L1ToL2Msg memory _message) public {
// fix message.sender and deadline:
_message.sender = DataStructures.L1Actor({actor: address(this), chainId: block.chainid});
// ensure actor fits in a field
Expand All @@ -69,7 +69,7 @@ contract NewInboxTest is Test {
_message.secretHash = bytes32(uint256(_message.secretHash) % Constants.P);

// TODO: nuke the following 2 values from the struct once the new message model is in place
_message.deadline = 0;
_message.deadline = 2 ** 32 - 1;
_message.fee = 0;

bytes32 leaf = _message.sha256ToField();
Expand Down Expand Up @@ -142,7 +142,7 @@ contract NewInboxTest is Test {
message.recipient.version = version;

// TODO: nuke the following 2 values from the struct once the new message model is in place
message.deadline = 0;
message.deadline = 2 ** 32 - 1;
message.fee = 0;

inbox.insert(message.recipient, message.content, message.secretHash);
Expand Down

0 comments on commit 5bcab84

Please sign in to comment.