Skip to content

Commit

Permalink
Revert unnecessary changes
Browse files Browse the repository at this point in the history
  • Loading branch information
MajorLift committed Jul 16, 2024
1 parent c445384 commit 056e8dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/assets-controllers/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module.exports = merge(baseConfig, {
// An object that configures minimum threshold enforcement for coverage results
coverageThreshold: {
global: {
branches: 91.23,
branches: 91.07,
functions: 97.51,
lines: 98.12,
statements: 98.03,
Expand Down
4 changes: 2 additions & 2 deletions packages/assets-controllers/src/NftController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1420,7 +1420,7 @@ export class NftController extends BaseController<
tokenId,
networkClientId,
);
return String(balance) !== '0';
return !balance.isZero();
// eslint-disable-next-line no-empty
} catch {
// Ignore ERC-1155 contract error
Expand Down Expand Up @@ -1989,7 +1989,7 @@ export class NftController extends BaseController<
name: suggestedNftMeta.asset.name,
description: suggestedNftMeta.asset.description,
image: suggestedNftMeta.asset.image,
standard: suggestedNftMeta.asset.standard ?? suggestedNftMeta.type,
standard: suggestedNftMeta.asset.standard,
},
},
},
Expand Down

0 comments on commit 056e8dc

Please sign in to comment.