-
Notifications
You must be signed in to change notification settings - Fork 23
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
RPC Query To Get Access Key Info Broken #210
Comments
@BenKurrek There is a lot of code that is complex and not relevant to the problem. Can you please write a separate 3 lines test that throws the same error? |
@BenKurrek I think you could replace const accessKey: any = await provider.query(
queryUrl,
""
); to const accessKey: any = await provider.query({
"request_type": "view_access_key",
"finality": "final",
"account_id": signerId,
"public_key": key!.getPublicKey().toString()
}
); according to the near rpc api of access-keys,which will pass the tests |
In the following code snippet, I attempt to get the access key information for the root account
test.near
but an error is thrown. (Full test here).This should return the access key information but instead, it throws an error:
To reproduce this issue:
yarn test
The text was updated successfully, but these errors were encountered: