Skip to content

Commit

Permalink
update struct owner position
Browse files Browse the repository at this point in the history
  • Loading branch information
gfournieriExec committed Jun 3, 2024
1 parent 64d3117 commit 97ec801
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion contracts/beacon/Voucher.sol
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@ contract Voucher is Initializable, IVoucher {

/// @custom:storage-location erc7201:iexec.voucher.storage.Voucher
struct VoucherStorage {
address _owner;
address _voucherHub;
uint256 _expiration;
uint256 _type;
mapping(address => bool) _authorizedAccounts;
mapping(bytes32 dealId => uint256) _sponsoredAmounts;
// Save refunded tasks to disable replay attacks.
mapping(bytes32 taskId => bool) _refundedTasks;
address _owner;
}

modifier onlyOwner() {
Expand Down
2 changes: 1 addition & 1 deletion contracts/mocks/VoucherV2Mock.sol
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ import {Initializable} from "@openzeppelin/contracts-upgradeable/proxy/utils/Ini
contract VoucherV2Mock is Initializable {
/// @custom:storage-location erc7201:iexec.voucher.storage.Voucher
struct VoucherStorage {
address _owner;
address _voucherHub;
uint256 _expiration;
uint256 _type;
mapping(address => bool) _authorizedAccounts;
mapping(bytes32 dealId => uint256) _sponsoredAmounts;
mapping(bytes32 taskId => bool) _refundedTasks;
address _owner;
uint256 _newStateVariable;
}

Expand Down

0 comments on commit 97ec801

Please sign in to comment.