Skip to content

Commit

Permalink
Add 'nonceKey' field to the 'RIP7560Transaction' struct; rename
Browse files Browse the repository at this point in the history
  • Loading branch information
forshtat committed Aug 18, 2024
1 parent c2bcda1 commit 0feebee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion contracts/interfaces/IRip7560Transaction.sol
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.23;

struct RIP7560TransactionStruct {
struct RIP7560Transaction {
address sender;
uint256 nonceKey;
uint256 nonce;
uint256 validationGasLimit;
uint256 paymasterValidationGasLimit;
Expand Down
4 changes: 2 additions & 2 deletions contracts/utils/RIP7560Utils.sol
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ library RIP7560Utils {
//struct version, as defined in RIP-7560
uint constant VERSION = 0;

function decodeTransaction(uint256 version, bytes calldata transaction) internal pure returns (RIP7560TransactionStruct memory) {
function decodeTransaction(uint256 version, bytes calldata transaction) internal pure returns (RIP7560Transaction memory) {
require(version == VERSION, "RIP7560Utils: unsupported version");
return abi.decode(transaction, (RIP7560TransactionStruct));
return abi.decode(transaction, (RIP7560Transaction));
}

function accountAcceptTransaction(
Expand Down

0 comments on commit 0feebee

Please sign in to comment.