0

I want to loose couple my MultiToken pallet to new Dex pallet, so I created MultiToken trait for interface. enter image description here Here I need Config to infer AccountId and OriginFor types

In my Dex pallet I need to add this trati in config enter image description here But I don't really understand what I need to pass in generic of MultiToken

1 Answer 1

1

Rather than making your trait generic over T: Config, you should make it generic over AccountId, and you probably should not include Origin anywhere in your interface.

Then, rather than passing Self, you should pass Self::AccountId into the generic parameter of the configuration.

If you posted your text, instead of screenshots, it would be helpful for us to show you the modified code.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.