aeternity / aepp-calldata-js

Aeternity data serialization library
ISC License
3 stars 4 forks source link

Catch undefined data to return proper error #175

Closed nikita-fuchs closed 1 year ago

nikita-fuchs commented 1 year ago

Currently, if e.g. one function call parameter is missed out, one is greeted with a rather generic error:

image

Could we add a check to the constructors of the types returning a proper error if empty data is passed? Or, any other ideas for a less confusing error ?

dincho commented 1 year ago

Can we please start by providing an example code using only the library and then we move forward.

Screenshots of stacktraces is just lol

nikita-fuchs commented 1 year ago

I think this is handled on SDK level by now.