Skip to content

Commit d50a531

Browse files
committed
chore: remove nonce from funder
1 parent c1f2130 commit d50a531

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/SimpleFunder.sol

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,12 @@ contract SimpleFunder is EIP712, Ownable, IFunder {
2727
error InvalidWithdrawalSignature();
2828
error InvalidNonce();
2929
error DeadlineExpired();
30-
error DigestUsed();
3130

3231
address public funder;
3332

3433
mapping(address => bool) public gasWallets;
3534
mapping(uint256 => bool) public nonces;
3635
mapping(address => bool) public orchestrators;
37-
mapping(bytes32 => bool) public usedDigests;
3836

3937
bytes32 constant WITHDRAWAL_TYPE_HASH = keccak256(
4038
"Withdrawal(address token,address recipient,uint256 amount,uint256 deadline,uint256 nonce)"
@@ -141,10 +139,6 @@ contract SimpleFunder is EIP712, Ownable, IFunder {
141139
if (!orchestrators[msg.sender]) {
142140
revert OnlyOrchestrator();
143141
}
144-
if (usedDigests[digest]) {
145-
revert DigestUsed();
146-
}
147-
usedDigests[digest] = true;
148142

149143
bool isValid = SignatureCheckerLib.isValidSignatureNow(funder, digest, funderSignature);
150144

0 commit comments

Comments
 (0)