Skip to content

Commit

Permalink
fix: changed storage index slot for the tokenId
Browse files Browse the repository at this point in the history
  • Loading branch information
Julink-eth committed Apr 18, 2023
1 parent 69d46de commit 2224220
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 35 deletions.
2 changes: 1 addition & 1 deletion packages/contracts/contracts/l1/LineaResolverStub.sol
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ contract LineaResolverStub is IExtendedResolver, SupportsInterface {
);

// step 2: check storage values, get itemId first and then get the address result
bytes32 tokenIdSlot = keccak256(abi.encodePacked(node, uint256(6)));
bytes32 tokenIdSlot = keccak256(abi.encodePacked(node, uint256(7)));
(bool tokenIdExists, bytes32 tokenId) = getStorageValue(
l2resolver,
tokenIdSlot,
Expand Down
Loading

0 comments on commit 2224220

Please sign in to comment.