I am a Rust and Ink! novice so please bear with me but, I have a struct that looks like the following:
#[ink(storage)]
pub struct Contract {
test: sp_arithmetic::FixedU128,
}
Unfortunately, I unable to build this project because of the following errors:
the trait bound
FixedU128: SpreadLayout
is not satisfied the following other types implement traitSpreadLayout
the trait bound
FixedU128: StorageLayout
is not satisfied the following other types implement traitStorageLayout
For the smart contract project I am working on, I really need to use fixed points. What is the recommended way to solve this issue? To create some wrapper that implements the above traits? If yes, are there any good tutorials for that?
Thank you very much in advance for your time!