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

Failing simulation tests of LOCKUP contract with near-sdk-sim v4.0.0-pre.4 #209

Open
Wabinab opened this issue Apr 8, 2022 · 0 comments

Comments

@Wabinab
Copy link

Wabinab commented Apr 8, 2022

For the lockup contract simulation tests https://github.com/near/core-contracts/blob/master/lockup/tests/spec.rs

There's a #[quickcheck] fn lockup that fails when run on near-sdk-sim v4.0.0-pre.4; (it doesn't have any problem with near-sdk-sim v3.2.0). The error below is "infinite" (each with a different "cost") and here is just 3 blocks of the infinite snippets. Is there any insight why this is happening?

The particular function that causes the failure is the deploy! macro (line 58-77) after singling them out.

thread 'utils::lockup_fn' panicked at 'called Result::unwrap() on an Err value: InvalidTxError(NotEnoughBalance { signer_id: "root", balance: 999989899996524202277137200000000, cost: 141563075635394439120160972145779809 })', /home/azureuser/.cargo/registry/src/github.com-1ecc6299db9ec823/near-sdk-sim-4.0.0-pre.4/src/user.rs:271:91
thread 'utils::lockup_fn' panicked at 'called Result::unwrap() on an Err value: InvalidTxError(NotEnoughBalance { signer_id: "root", balance: 999989899996524202277137200000000, cost: 70781537819542754343968541375830901 })', /home/azureuser/.cargo/registry/src/github.com-1ecc6299db9ec823/near-sdk-sim-4.0.0-pre.4/src/user.rs:271:91
thread 'utils::lockup_fn' panicked at 'called Result::unwrap() on an Err value: InvalidTxError(NotEnoughBalance { signer_id: "root", balance: 999989899996524202277137200000000, cost: 35390768911616911955872325990856447 })', /home/azureuser/.cargo/registry/src/github.com-1ecc6299db9ec823/near-sdk-sim-4.0.0-pre.4/src/user.rs:271:91 
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