iotabots / iotabots.io

Landing page website for IOTABOTS
https://iotabots.io/
22 stars 14 forks source link

Add error handling on walletOfOwner call #5

Closed Crelde closed 2 years ago

Crelde commented 2 years ago

In the previous version there was two different smart contract addresses. One of them failed for me resulting in a crash. So I just added some code to check for errors and display a generic error message if there is one. I could reproduce the error by using this address for the sc: 0xF1960052d7f8Ad70412C2d6F7D23A9327e0665b1. Also added a string to say if no iotabots were found on the address.