core-contracts icon indicating copy to clipboard operation
core-contracts copied to clipboard

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

Open Wabinab opened this issue 2 years ago • 0 comments

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 

Wabinab avatar Apr 08 '22 11:04 Wabinab