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

get_number_of_pools misbehaving #69

Open
mikedotexe opened this issue Feb 21, 2022 · 1 comment
Open

get_number_of_pools misbehaving #69

mikedotexe opened this issue Feb 21, 2022 · 1 comment

Comments

@mikedotexe
Copy link
Member

Looking at Eugene's token factory:

https://github.com/evgenykuzyakov/token-factory/blob/15aae092a4cae928f119140632af0512448071ae/frontend/src/Tokens.js#L343

we run into an issue

Error: Querying call/ref-finance.near/get_number_of_pools,AQ4 failed: wasm execution failed with error: FunctionCallError(CompilationError(PrepareError(Deserialization))).
{
  "error": "wasm execution failed with error: FunctionCallError(CompilationError(PrepareError(Deserialization)))",
  "logs": [],
  "block_height": 59982114,
  "block_hash": "5D6urqUnTgcAxuHAqTe54qhRsffE1YS9ZUHsrvD9VuCe"
}
    at JsonRpcProvider.query (json-rpc-provider.js:80:1)
    at async ConnectedWalletAccount.viewFunction (account.js:271:1)
    at async Tokens.refreshRefPools (Tokens.js:346:1)
    at async Promise.all (:3000/index 0)
    at async Tokens.refreshRef (Tokens.js:335:1)

Running this command on NEAR CLI also throws the same error:

NEAR_ENV=mainnet near view ref-finance.near get_number_of_pools
@chluff
Copy link

chluff commented Feb 23, 2022

ser the address is v2.ref-finance.near

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

2 participants