koinos / koinos-cli

A command line utility used for key management and to interact with the Koinos blockchain.
Other
9 stars 7 forks source link

Crash on contract read #181

Closed youkaicountry closed 1 year ago

youkaicountry commented 1 year ago

Resolves #173

Brief description

Fix the crash when reading some contracts

Checklist

Demonstration

Reading a nonexisting proposal now correctly return empty message

🔐 > governance.get_proposal_by_id 0x01

🔐 > resources.get_resource_limits
value:  {
  disk_storage_limit:  524288
  disk_storage_cost:  21896
  network_bandwidth_limit:  1048576
  network_bandwidth_cost:  3314
  compute_bandwidth_limit:  287500000
  compute_bandwidth_cost:  17
}