nearprotocol / assemblyscript

A TypeScript to WebAssembly compiler 🚀
https://assemblyscript.org
Apache License 2.0
8 stars 1 forks source link

if nearfile annotation is missing from main.ts file, contract calls fail, errors unhelpful #57

Open janedegtiareva opened 5 years ago

janedegtiareva commented 5 years ago

E.g. a view function call that returns a hardcoded string will produce [] as a result (see screenshot)

Screen Shot 2019-08-29 at 11 15 18 AM
janedegtiareva commented 5 years ago

This is not a great developer experience. When it happens it looks more like a bug on our side rather than something wrong in the contract code.