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

Misleading "no matching key pair found" Error in beforeEach hook #173

Open
idea404 opened this issue Jun 21, 2022 · 0 comments
Open

Misleading "no matching key pair found" Error in beforeEach hook #173

idea404 opened this issue Jun 21, 2022 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@idea404
Copy link

idea404 commented Jun 21, 2022

Error thrown when a contract account is initialized with too little initialBalance. Example code that triggered this error (in beforeEach):

...
 const nft_contract = await root.createAndDeploy(
 root.getSubAccount("nft-contract").accountId,
 "../../out/main.wasm",

 { initialBalance: NEAR.parse('3 N').toJSON() } 

,
 );
 ...

Throws following error which is currently misleading as it reads:

Increasing the balance in the contract code to 100 as below addressed this error:

...
 const nft_contract = await root.createAndDeploy(
 root.getSubAccount("nft-contract").accountId,
 "../../out/main.wasm",

 { initialBalance: NEAR.parse('100 N').toJSON() } 

,
 );
 ...
@idea404 idea404 added the bug Something isn't working label Jun 21, 2022
@github-project-automation github-project-automation bot moved this to Backlog 🥶 in DevRel Jun 3, 2024
@thisisjoshford thisisjoshford removed this from DevRel Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants