Skip to content

Commit

Permalink
perf: more struct packing
Browse files Browse the repository at this point in the history
  • Loading branch information
moebius committed Oct 26, 2023
1 parent c6699c2 commit a2e6cfa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion solidity/contracts/Oracle.sol
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ contract Oracle is IOracle {
resolutionModule: _request.resolutionModule,
finalityModule: _request.finalityModule,
requester: msg.sender,
nonce: _requestNonce,
nonce: uint96(_requestNonce),
createdAt: uint128(block.timestamp),
finalizedAt: 0
});
Expand Down
2 changes: 1 addition & 1 deletion solidity/interfaces/IOracle.sol
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ interface IOracle {
bytes32 ipfsHash;
uint128 createdAt;
uint128 finalizedAt;
uint256 nonce;
uint96 nonce;
address requester;
IRequestModule requestModule;
IResponseModule responseModule;
Expand Down

0 comments on commit a2e6cfa

Please sign in to comment.