ergoplatform / sigma-rust

Rust implementation of ErgoTree interpreter and wallet-related features
Creative Commons Zero v1.0 Universal
69 stars 48 forks source link

[6.0] Fix for downcasting BigInt to other numeric types #774

Closed SethDusek closed 1 month ago

SethDusek commented 1 month ago

For #770. Also fixes upcasting BigInt256 to BigInt256 (previously sigma-rust would accept this on all versions, even though this is 6.0-specific)

coveralls commented 1 month ago

Pull Request Test Coverage Report for Build 11177535395

Details


Changes Missing Coverage Covered Lines Changed/Added Lines %
ergotree-interpreter/src/eval/downcast.rs 32 33 96.97%
ergotree-interpreter/src/eval/upcast.rs 4 5 80.0%
ergotree-ir/src/bigint256.rs 5 7 71.43%
<!-- Total: 41 45 91.11% -->
Files with Coverage Reduction New Missed Lines %
ergotree-interpreter/src/eval/upcast.rs 2 77.78%
ergotree-ir/src/serialization/types.rs 8 82.58%
ergotree-interpreter/src/eval/downcast.rs 10 85.42%
<!-- Total: 20 -->
Totals Coverage Status
Change from base Build 11146473813: -0.02%
Covered Lines: 10884
Relevant Lines: 13776

💛 - Coveralls