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
Just a suggestion but when a reserved identifier is used the error output should reference that it is a reserved identifier since that may be causing the error.
for example, I used attached_deposit == self.fee_amount, by mistake and the error just kept saying expected 'NearToken', found 'u128'
The error should say something like expected 'NearToken', found 'u128', note: attached_deposit is a reserved identifier
The text was updated successfully, but these errors were encountered:
joe-rlo
changed the title
Error message should be explicit for a mistakenly used reserved term.
Error message should be explicit for a mistakenly used reserved identifier
Apr 10, 2024
Just a suggestion but when a reserved identifier is used the error output should reference that it is a reserved identifier since that may be causing the error.
for example, I used
attached_deposit == self.fee_amount,
by mistake and the error just kept sayingexpected 'NearToken', found 'u128'
The error should say something like
expected 'NearToken', found 'u128', note: attached_deposit is a reserved identifier
The text was updated successfully, but these errors were encountered: