Zilliqa / ZRC

Zilliqa Reference Contracts
MIT License
40 stars 57 forks source link

fix(zrc1): token must exist for GetApproved #110

Closed ghost closed 2 years ago

ghost commented 2 years ago

This PR checks if the token exists for GetApproved(). If the token doesn't exist, then it throws CodeNotFound error.

The current GetApproved() throws CodeNotApproved error if the token doesn't exist. This can be misleading.