shawntabrizi / sudo-contract

A Substrate runtime module that adds an access control layer to the Contract module.
MIT License
9 stars 1 forks source link

Removing Call for srml_contracts in construct_runtime! errors #2

Open adamdossa opened 5 years ago

adamdossa commented 5 years ago

In Substrate master (v2.0) doing this gives the error:

error[E0277]: the trait bound `Call: asset::sr_api_hidden_includes_decl_storage::hidden_include::IsSubType<srml_contracts::Module<Runtime>, Runtime>` is not satisfied
   --> /substrate/runtime/src/lib.rs:332:6
    |
332 | impl contracts::Trait for Runtime {
    |      ^^^^^^^^^^^^^^^^ the trait `asset::sr_api_hidden_includes_decl_storage::hidden_include::IsSubType<srml_contracts::Module<Runtime>, Runtime>` is not implemented for `Call`
    |
    = help: the following implementations were found:
              <Call as asset::sr_api_hidden_includes_decl_storage::hidden_include::IsSubType<balances::Module<Runtime>, Runtime>>
            and 26 others

error: aborting due to previous error
adamdossa commented 5 years ago

The contracts / srml_contracts above isn't a typo, in my module I kept contracts for the srml version.