You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes, this is intentional. Receiving IDLValue means it's untyped, thus needing a different API. I'm planning to change IDLValue::ty() to return Type::Unknown, but it won't help your use case. One has to look at the value of IDLValue to know the type.
I recently had to add
SyncCallBuilder.with_value_arg(IDLValue)
, becausewith_arg
panics:IDLValue::ty()
calls unreachable() : https://github.com/dfinity/candid/blob/master/rust/candid/src/parser/value.rs#L326It would be nicer if
with_arg
worked with IDLValue rather than panicking.The text was updated successfully, but these errors were encountered: