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 21 forks source link

FunctionCall Action cannot take raw buffer as args #107

Closed ailisp closed 2 years ago

ailisp commented 2 years ago

In near-api-js, both raw buffer and JavaScript Object can be provided as argument of a FunctionCall Action. This is useful when contract argument is not serialized with JSON (Examples: rust contracts using borsh, aurora contract deploy_code method, near-sdk-js JavaScript Enclave contract). A fix will be update the type definition of FunctionCall args in this repo

ailisp commented 2 years ago

Looks it's already fixed but new version wasn't released to npm It's not fixed, only createAndDeploy args can takes Uint8Array (correct behavior), but not call and call_raw. I'll send a PR