I am trying to use U256 in rust smart contract for near protocol with a library called ethnum
. But it always give errors like:
the trait `JsonSchema` is not implemented for `U256`
│ |
│ = help: the following other types implement trait `JsonSchema`:
│ &'a T
│ &'a mut T
│ ()
│ (T0, T1)
│ (T0, T1, T2)
│ (T0, T1, T2, T3)
│ (T0, T1, T2, T3, T4)
│ (T0, T1, T2, T3, T4, T5)
I expect a smart contract which use U256 library to sum, change, multiply etc. so that it can be used for other smart contracts too in NEAR protocol's rust smart contract.