Closed yugocabrio closed 1 year ago
The quoted_source
in candid is the same as
variant {
Article : nat64;
None: null;
Post : nat64;
Comment : nat64;
}
The key is 'None' and the type of value is null
.
Thus the types in ic-py
is
'quoted_resource':Types.Variant({
'Article':Types.Nat64,
'None': Types.Null,
'Post' :Types.Nat64,
'Comment':Types.Nat64,
}),
The value is
'quoted_resource': {'None':None},
Thank you for the information!
This is the correct candid. It was indicated in the error result. My problem is how to handle None. I wrote params, but I am unsure how to write
None
in params.I used this empty string ' ' as a key for the variable name of type "Types.Null"(None) for the first, but it was not allowed. I have no idea. Could you tell me what key should be set for Types.Null? Tentatively set to 'Null', but it dose not work now.