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
warning: failed to parse serde attribute
|
|
| #[serde(crate = "near_sdk::serde")]
| #[serde(crate = "near_sdk::serde")]
|
= note: ts-rs failed to parse this attribute. It will be ignored.
error[E0277]: the trait bound `near_sdk::json_types::Base64VecU8: ts_rs::TS` is not satisfied
Thanks!
The text was updated successfully, but these errors were encountered:
What I think is going on here is much more mundane - Base64VecU8 just doesn't implement ts_rs::TS. You should try wrapping it in a newtype and implementing ts_rs::TS for that yourself, or use #[ts(type = "some typescript type")] to manually set the type of the field.
Hey! I've encountered the issue, that due to
ts-rs
does not support the serdecrate
feature, the program fails to compile.Here is an example:
Error:
Thanks!
The text was updated successfully, but these errors were encountered: