core-contracts
core-contracts copied to clipboard
Fix tests for `multisig`, `staking-pool` and `staking-pool-factory`
cargo test is broken for:
- [ ] multisig
- [ ] staking-pool
- [ ] staking-pool-factory
The CI is switched off for these contracts. It is switched on only for this list https://github.com/near/core-contracts/blob/master/scripts/contracts.json
@evgenykuzyakov could you please help with this?
Just FYI, I was looking into similar tests and found that a culprit was the rust-toolchain file.
I was updating a contract to a newer version and it would look "up" a directory and find the toolchain file and use that.
This is not a solution, but the way I got around it was to do cargo +stable test -- --nocapture
I think the better solution is to follow what we did with near-sdk-rs where we have Docker build them.
https://github.com/near/near-sdk-rs/blob/15c63cde9e08c242e9d26bb5e07991f51c13ff45/examples/build_all_docker.sh