mirror of
https://github.com/jwinterm/grin-wallet.git
synced 2026-10-17 23:31:42 +02:00
A large u64 amount could wrap when cast `as i64`. Convert with i64::try_from in the CLI net-change derivation and in contract view, returning an error instead. get_net_change / to_api_args now return Result (the two arg panics become errors too), and the to_api_args call moves out of the owner-session closure. Addresses PR #754 review (command.rs, view.rs).