Skip to content

Commit

Permalink
feat: for the L2 resolver, starts the NFT itemId at 1
Browse files Browse the repository at this point in the history
  • Loading branch information
Julink-eth committed Apr 12, 2023
1 parent ca6f427 commit 12d17f6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 4 additions & 1 deletion packages/contracts/contracts/l2/LineaResolver.sol
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ contract LineaResolver is ERC721 {
constructor(
string memory _name,
string memory _symbol
) ERC721(_name, _symbol) {}
) ERC721(_name, _symbol) {
// Start tokenId at index 1
tokenId = 1;
}

function mintSubdomain(
bytes32 node,
Expand Down
1 change: 0 additions & 1 deletion packages/gateway/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ server.add(IResolverAbi, [
(x) => x.key === tokenIdSlot
)[0].proof
);
console.log("tokenIdProof.storageProof", tokenIdProof.storageProof);

// Create proof for the owner slot
const ownerProof = await l2provider.send("eth_getProof", [
Expand Down

0 comments on commit 12d17f6

Please sign in to comment.