From a2e6cfa24e5917b379733c8869d7f1bf9d389be4 Mon Sep 17 00:00:00 2001 From: moebius <0xmoebius@tutanota.com> Date: Thu, 26 Oct 2023 11:56:27 -0300 Subject: [PATCH] perf: more struct packing --- solidity/contracts/Oracle.sol | 2 +- solidity/interfaces/IOracle.sol | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/solidity/contracts/Oracle.sol b/solidity/contracts/Oracle.sol index a7b5f66..c3bda7c 100644 --- a/solidity/contracts/Oracle.sol +++ b/solidity/contracts/Oracle.sol @@ -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 }); diff --git a/solidity/interfaces/IOracle.sol b/solidity/interfaces/IOracle.sol index f0d38c5..6255388 100644 --- a/solidity/interfaces/IOracle.sol +++ b/solidity/interfaces/IOracle.sol @@ -200,7 +200,7 @@ interface IOracle { bytes32 ipfsHash; uint128 createdAt; uint128 finalizedAt; - uint256 nonce; + uint96 nonce; address requester; IRequestModule requestModule; IResponseModule responseModule;