rocklabs-io / ic-py

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

Added support for json payload in canisters #93

Closed Dfinity-skaestle closed 1 year ago

Dfinity-skaestle commented 1 year ago

Arguments and replies of canister calls can also be encoded as json (and not just Candid).

This small MR adds support for handling replies that are not Candid encoded. For that, the magic Candid header is used and if it isn't matched, the raw data will be returned.