We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6840fc8 commit 92c7c91Copy full SHA for 92c7c91
packages/gator-permissions-snap/src/clients/accountApiClient.ts
@@ -170,12 +170,13 @@ export class AccountApiClient {
170
logger.info(
171
`No balance found for token ${tokenAddress} on account ${account}`,
172
);
173
- return BigInt(0);
+ return 0n;
174
}
175
176
// Find the token in the balances array
177
+ const tokenAddressLowerCase = tokenAddress.toLowerCase();
178
const tokenData = balances.find(
- (token) => token.address.toLowerCase() === tokenAddress.toLowerCase(),
179
+ (token) => token.address.toLowerCase() === tokenAddressLowerCase,
180
181
182
if (!tokenData) {
0 commit comments