nervosnetwork / capsule

Capsule is an out-of-box development framework for creating smart contract on Nervos' CKB.
MIT License
60 stars 34 forks source link

Executing the test case results in MemOutOfBound error, and debug logs are not printed #129

Open gpBlockchain opened 1 year ago

gpBlockchain commented 1 year ago

env: Capsule 0.10.1 25fd7d4

cargo install cross --git https://github.com/cross-rs/cross
cargo install ckb-capsule --git https://github.com/quake/capsule.git --branch quake/ckb-0.111

contranct :https://github.com/gpBlockchain/ckb-test-contracts/blob/main/rust/acceptance-contracts/contracts/spawn_demo/src/spawn_out_of_memory.rs#L45 test_code: https://github.com/gpBlockchain/ckb-test-contracts/blob/main/rust/acceptance-contracts/tests/src/test_contract_type.rs#L119-L122

step:

capsule test test_contract_type::test_spawn_out_of_memory
running 1 test
thread 'test_contract_type::test_spawn_out_of_memory' panicked at 'pass verification: Error { kind: Script, inner: TransactionScriptError { source: Inputs[0].Lock, cause: VM Internal Error: MemOutOfBound } }', src/test_contract_type.rs:295:10
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
test test_contract_type::test_spawn_out_of_memory - should panic ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 47 filtered out; finished in 0.13s

not found debug log in the test