Yan Chen

Results 121 comments of Yan Chen

You need to use `ic-cdk` instead. `ic-agent` is a client library, which can only be used when you are outside of the network. Even if you can compile it in...

I'm confused. If you want to run in browser, why not use `agent-js`?

Could be a CDK issue. Not sure if CDK allows deserializing borrowed arguments. One thing you can try is to use `serde_bytes::Bytes` instead of `&'body [u8]` so that the lifetime...

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...

You can now decode function reference to `candid::Func`, so `IDLValue` is no longer needed.

> When using candid we couldn't extend enums or add non-optional fields to structs, now that is trivial. We are working on the fix to support extensible variant. Adding non-optional...

This is unfortunately a feature, not a bug. The spec says the argument name is immaterial, and is ignored by the parser. There could be someway to display the type...

> It is immaterial for the purposes of serialization and subtyping (which the spec puts its main focus on, maybe too much), but it is absolutely fine to use that...

Can you show the code diff before and after the upgrade?

Have you tried this: https://github.com/dfinity/cdk-rs/blob/main/src/ic-cdk/src/api/call.rs#L636