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
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.
The function is already set up in
functionCall
to accept this, so allows users to re-use this logic (maybe it was intentional forcall
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