mirror of
https://github.com/jwinterm/grin-wallet.git
synced 2026-10-17 15:21:39 +02:00
contract `new` and the foreign `contract_new` API unwrapped the optional net_change field, so a request omitting it panicked the wallet. Return an error instead. - new::compute and foreign::contract_new: net_change.ok_or_else(..). - test: contract_new with no net change errors rather than panicking. Addresses PR #754 review (new.rs, foreign.rs).