Skip to content

Commit

Permalink
Spearbit I-91 (#324)
Browse files Browse the repository at this point in the history
  • Loading branch information
dianakocsis authored Sep 3, 2024
1 parent 1a53c10 commit 8a43068
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .forge-snapshots/PositionManager_permit.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
79485
79492
Original file line number Diff line number Diff line change
@@ -1 +1 @@
62373
62380
2 changes: 1 addition & 1 deletion .forge-snapshots/PositionManager_permit_twice.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
45261
45268
6 changes: 3 additions & 3 deletions src/libraries/ERC721PermitHash.sol
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ library ERC721PermitHashLibrary {
assembly ("memory-safe") {
let fmp := mload(0x40)
mstore(fmp, PERMIT_TYPEHASH)
mstore(add(fmp, 0x20), spender)
mstore(add(fmp, 0x20), and(spender, 0xffffffffffffffffffffffffffffffffffffffff))
mstore(add(fmp, 0x40), tokenId)
mstore(add(fmp, 0x60), nonce)
mstore(add(fmp, 0x80), deadline)
Expand All @@ -41,8 +41,8 @@ library ERC721PermitHashLibrary {
assembly ("memory-safe") {
let fmp := mload(0x40)
mstore(fmp, PERMIT_FOR_ALL_TYPEHASH)
mstore(add(fmp, 0x20), operator)
mstore(add(fmp, 0x40), approved)
mstore(add(fmp, 0x20), and(operator, 0xffffffffffffffffffffffffffffffffffffffff))
mstore(add(fmp, 0x40), and(approved, 0x1))
mstore(add(fmp, 0x60), nonce)
mstore(add(fmp, 0x80), deadline)
digest := keccak256(fmp, 0xa0)
Expand Down

0 comments on commit 8a43068

Please sign in to comment.