Skip to content

Commit

Permalink
Did we ever have a passport 0?
Browse files Browse the repository at this point in the history
  • Loading branch information
johnmark13 committed Nov 20, 2023
1 parent d27215f commit db94b49
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@
"0xfafda3727fe0406e50230bf6092be5ded68cd9e9",
"0x79438224Bc21b0E6B45ECF9F8caADfBdB874DedD"
],
"snapshot": 17683972
"snapshot": 18611783
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export async function strategy(
const lastIndex = await erc721LastTokenIdCaller.execute();
const lastTokenId = BigNumber.from(lastIndex.lastTokenId).toNumber();

for (let i = 0; i < lastTokenId; i++) {
for (let i = 1; i < lastTokenId; i++) {
erc721SignerCaller.call(i, options.erc721, 'signerOf', [i]);
erc721OwnerCaller.call(i, options.erc721, 'ownerOf', [i]);
}
Expand Down Expand Up @@ -91,5 +91,5 @@ export async function strategy(
return parseFloat(formatUnits(balance, DECIMALS)) > 1.5;
});

return Object.fromEntries(withPower.map(([, signer]) => [signer, 1]));
return Object.fromEntries(withPower.map(([, signer]) => [signer, 1])) || [];
}
2 changes: 1 addition & 1 deletion src/strategies/nation3-votes-with-delegations/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export async function strategy(
const lastIndex = await erc721LastTokenIdCaller.execute();
const lastTokenId = BigNumber.from(lastIndex.lastTokenId).toNumber();

for (let i = 0; i < lastTokenId; i++) {
for (let i = 1; i < lastTokenId; i++) {
erc721SignerCaller.call(i, options.erc721, 'signerOf', [i]);
erc721OwnerCaller.call(i, options.erc721, 'ownerOf', [i]);
}
Expand Down

0 comments on commit db94b49

Please sign in to comment.