error[E0277]: the trait bound `std::collections::HashMap<std::string::String, Fraction>: BorshSerialize` is not satisfied
--> pure_utils/src/lib.rs:215:10
|
215 | #[derive(BorshSerialize, BorshDeserialize, Serialize, Deserialize, Debug, Clone, PartialEq, Eq)]
| ^^^^^^^^^^^^^^ the trait `BorshSerialize` is not implemented for `std::collections::HashMap<std::string::String, Fraction>`
|
= help: see issue #48214
= help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
Running into a possible
pure_near_sdk
borsh bug. I have a type that wraps a HashMap.HashMap is being pulled from
std
, but I don't think this is causing the problem.After swapping
for
compilation returns the error: