near / near-workspaces-js

Write tests once, run them both on NEAR TestNet and a controlled NEAR Sandbox local environment
https://near.github.io/near-workspaces-js/
GNU General Public License v3.0
42 stars 22 forks source link

feat: allow Uint8Array as call args #46

Closed austinabell closed 3 years ago

austinabell commented 3 years ago

The function is already set up in functionCall to accept this, so allows users to re-use this logic (maybe it was intentional for call since this assumes JSON encoding of the result?

Also would be nice if available for view methods as well, because I'm sure this has just as much need, but was unclear to me the best way to fit that in and I didn't need

willemneal commented 3 years ago

Thanks! We should also provide a way to pass a borsh schema too, but I think we should revisit that after thinking about how to improve the DevX of borsh-js.