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
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
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