Check totalBalance > 0 // Better account selection (#3347)
This commit is contained in:
committed by
Gav Wood
parent
cb84e61d06
commit
eb56b82f43
@@ -75,7 +75,7 @@ const validateTokenAddress = (address, contract, simple) => {
|
||||
|
||||
return getTokenTotalSupply(address)
|
||||
.then(balance => {
|
||||
if (balance === null) {
|
||||
if (balance === null || balance.equals(0)) {
|
||||
return {
|
||||
error: ERRORS.invalidTokenAddress,
|
||||
valid: false
|
||||
|
||||
Reference in New Issue
Block a user