FT icon indicating copy to clipboard operation
FT copied to clipboard

When call storage_balance_of() method, Unhandled Rejection (Error): [-32700] occured.

Open mashharuki opened this issue 2 years ago • 2 comments

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`
スクリーンショット 2022-11-06 14 34 07

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

mashharuki avatar Nov 06 '22 05:11 mashharuki

near --version 3.4.1 node --version 16.15.1 npm --version 8.11.0 MacOS (not M1)

mashharuki avatar Nov 06 '22 05:11 mashharuki

My Github repo is here

mashharuki avatar Nov 06 '22 05:11 mashharuki