Skip to content

Commit

Permalink
fix: check isNative to determine if a token is a gas token
Browse files Browse the repository at this point in the history
  • Loading branch information
bfullam committed Feb 3, 2025
1 parent ef3b5d1 commit ec76d0f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -859,7 +859,7 @@ class Amount extends PureComponent {
}

if (!amountError) {
if (selectedAsset.isETH) {
if (selectedAsset.isNative) {
weiBalance = hexToBN(accounts[selectedAddress].balance);
weiInput = weiValue.add(estimatedTotalGas);
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -892,7 +892,7 @@ class Confirm extends PureComponent {
});
}

if (selectedAsset.isETH || selectedAsset.tokenId) {
if (selectedAsset.isNative || selectedAsset.tokenId) {
return insufficientBalanceMessage;
}

Expand Down

0 comments on commit ec76d0f

Please sign in to comment.