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
Why does the implementation need to fail instead of returning 0?
If you write a contract that checks balance of a user, you now need to handle 2 cases. Does the response failed or returned a value. Instead of always succeed and rerturn.
The text was updated successfully, but these errors were encountered:
FT/contracts/assemblyscript/nep21-basic/main.ts
Line 102 in 901145f
Why does the implementation need to fail instead of returning
0
?If you write a contract that checks balance of a user, you now need to handle 2 cases. Does the response failed or returned a value. Instead of always succeed and rerturn.
The text was updated successfully, but these errors were encountered: