Skip to content

Commit

Permalink
Update var name
Browse files Browse the repository at this point in the history
  • Loading branch information
garyghayrat committed Jul 3, 2023
1 parent 194834e commit c7ec660
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions umbra-js/src/utils/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,8 @@ export async function getBlockNumberUserRegistered(address: string, provider: St
address = getAddress(address); // address input validation
const registry = new StealthKeyRegistry(provider);
const filter = registry._registry.filters.StealthKeyChanged(address, null, null, null, null);
const stealthKeyLog = await registry._registry.queryFilter(filter);
const registryBlock = stealthKeyLog[0]?.blockNumber || undefined;
const stealthKeyLogs = await registry._registry.queryFilter(filter);
const registryBlock = stealthKeyLogs[0]?.blockNumber || undefined;
return registryBlock;
}

Expand Down

0 comments on commit c7ec660

Please sign in to comment.