I'm trying to call an erc20 contract from another custom erc20 contract.
Both, the original contract and calling contract have the following macros:
#[ink(storage)]
#[derive(SpreadAllocate)]
In the calling contract's struct, we have asset: Erc20Ref,
, and facing this error:
the trait bound `Erc20Ref: SpreadAllocate` is not satisfied
the trait `SpreadAllocate` is not implemented for `Erc20Ref`
The Erc20Ref is generated by ink, and I guess it doesn't implement SpreadAllocate. Is there a way to resolve this?