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
{{ message }}
Repository navigation
unhelpful error message when trying to use storage.get<T> with primitives #58
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)
Activity