rocklabs-io / ic-py

Python Agent Library for the DFINITY Internet Computer
MIT License
128 stars 27 forks source link

differentiate between valid result and IC error #72

Closed letmejustputthishere closed 2 years ago

letmejustputthishere commented 2 years ago

it would be great if i had a way to check wether or not a canister return a result or trapped for example. if the canister traps, i get a string instead of the expected result. but if both return types are strings, differentiating becomes cumbersome...

ogy IC0503: Canister s32s7-zqaaa-aaaaj-afksa-cai trapped explicitly: IDL error: unexpected variant tag