You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When entering a non-existent cw20 shown like the screenshot below, I was expecting it to say:
No contract at that address. Probable black hole.
because of this part:
constgetTokenDetails=async({tokenAddress, network})=>{console.log('aloha to of getTokenDetails')lettokenDetails;consttokenType=awaitgetTokenType(tokenAddress);try{tokenDetails=awaittokenType.getTokenDetails({tokenAddress, network});}catch(e){// Throw a more specific error message if we canif(e.message.includes('decoding bech32 failed')){throw'Invalid address. Remember: first you copy, then you paste.';}elseif(e.message.includes('contract: not found')){throw'No contract at that address. Probable black hole.';}elseif(e.message.includes('Error parsing into type')){throw'That is a valid contract, but cosmic perturbations tell us it is not a cw20.';}else{console.warn(e.stack);throw`Error message after trying to query ${tokenType.name}: ${e.message}`;}…
The text was updated successfully, but these errors were encountered:
When entering a non-existent cw20 shown like the screenshot below, I was expecting it to say:
because of this part:
The text was updated successfully, but these errors were encountered: