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
I'm trying to initialize a contract that holds both Mappings and ContractRefs to other contracts. It does not seem that contract references by default implement the necessary trait and as such I cannot compile these contracts. Is there a recommended method for init'ing contracts with these items side by side?
The text was updated successfully, but these errors were encountered:
As a workaround, the user can implement SpreadAllocate manually current contract or the user can use AccountId instead of ContractRef(under the hood it is account id).
Also if the user has the source of the Contract, he can implement SpreadAllocate manually for ContractRef.
Overview
I'm trying to initialize a contract that holds both
Mapping
s andContractRef
s to other contracts. It does not seem that contract references by default implement the necessary trait and as such I cannot compile these contracts. Is there a recommended method for init'ing contracts with these items side by side?The text was updated successfully, but these errors were encountered: