Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unhelpful error message when trying to use storage.get<T> with primitives #58

Open
janedegtiareva opened this issue Aug 29, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@janedegtiareva
Copy link

steps to repro:
try to build a contract which contains this line
storage.getPrimitive<i32>("counter")

expected behavior:
some error which references the problematic line in source

actual behavior:
The compiler output is an assertion failure without a reference to a line in source code:

AssertionError: assertion failed
at n.assert (/Users/evgueniadegtiareva/near/NEARStudio/templates/node_modules/assemblyscript/dist/asc.js:1:698370)
at e.asNullable (/Users/evgueniadegtiareva/near/NEARStudio/templates/node_modules/assemblyscript/dist/assemblyscript.js:1:129907)

@janedegtiareva janedegtiareva added the enhancement New feature or request label Aug 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant