FT
FT copied to clipboard
When call storage_balance_of() method, Unhandled Rejection (Error): [-32700] occured.
I'm developing Dapp on NEAR protocol.
And I want to cross call method.
I'm writing FT contract's storage_balance_of() method before call ross call method. But Unhandled Rejection (Error): [-32700] occured.
What are the possible causes and countermeasures?
Unhandled Rejection (Error): [-32700] Parse error: Failed parsing args: missing field `account_id`

frontend source code is here.
/**
* get storage balance of account id function
*/
export async function storage_balance_of(account_id) {
let balance = await window.ftContract.storage_balance_of({
account_id: account_id,
});
return balance;
}
near --version 3.4.1 node --version 16.15.1 npm --version 8.11.0 MacOS (not M1)
My Github repo is here