Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mashharuki opened this issue Nov 6, 2022 · 2 comments

Comments

@mashharuki
Copy link

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
Copy link
Author

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

@mashharuki
Copy link
Author

My Github repo is here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant