nimbus icon indicating copy to clipboard operation
nimbus copied to clipboard

Pass through try-runtime feature in pallet-author-inherent

Open sea212 opened this issue 1 year ago • 0 comments

When trying to build the Zeitgeist runtime with the try-runtime feature, it fails because pallet-author-inherent does not pass through this feature properly.

Click here to expand the error message

  error[E0599]: the function or associated item `try_execute_block` exists for struct `Executive, UncheckedExtrinsic<... ...>>, ..., ..., ...>`, but its trait bounds were not satisfied
     --> /home/sea212/Documents/github/zeitgeist/runtime/zeitgeist/src/lib.rs:223:1
      |
  223 | create_runtime_api!();
      | ^^^^^^^^^^^^^^^^^^^^^ function or associated item cannot be called due to unsatisfied trait bounds
      |
      = note: the full type name has been written to '/home/sea212/Documents/github/zeitgeist/target/debug/wbuild/zeitgeist-runtime/target/wasm32-unknown-unknown/release/deps/zeitgeist_runtime-70466694c71a1cfa.long-type-14257364266321246897.txt'
      = note: the following trait bounds were not satisfied:
              `(frame_system::Pallet, pallet_timestamp::Pallet, pallet_randomness_collective_flip::Pallet, pallet_scheduler::Pallet, pallet_preimage::Pallet, pallet_balances::Pallet, pallet_transaction_payment::Pallet, pallet_treasury::Pallet, pallet_vesting::Pallet, pallet_multisig::Pallet, pallet_bounties::Pallet, pallet_asset_tx_payment::Pallet, pallet_democracy::Pallet, pallet_collective::Pallet, pallet_membership::Pallet, pallet_collective::Pallet, pallet_membership::Pallet, pallet_collective::Pallet, pallet_membership::Pallet, pallet_identity::Pallet, pallet_utility::Pallet, pallet_proxy::Pallet, pallet_contracts::Pallet, orml_currencies::Pallet, orml_tokens::Pallet, zrml_market_commons::Pallet, zrml_authorized::Pallet, zrml_court::Pallet, zrml_liquidity_mining::Pallet, zrml_rikiddo::Pallet, zrml_simple_disputes::Pallet, zrml_swaps::Pallet, zrml_prediction_markets::Pallet, zrml_styx::Pallet, cumulus_pallet_parachain_system::Pallet, parachain_info::Pallet, pallet_parachain_staking::Pallet, pallet_author_inherent::Pallet, pallet_author_slot_filter::Pallet, pallet_author_mapping::Pallet, cumulus_pallet_xcm::Pallet, cumulus_pallet_dmp_queue::Pallet, pallet_xcm::Pallet, cumulus_pallet_xcmp_queue::Pallet, orml_asset_registry::Pallet, orml_unknown_tokens::Pallet, orml_xtokens::Pallet): hidden_include::traits::TryState`
      = note: this error originates in the macro `create_runtime_api` (in Nightly builds, run with -Z macro-backtrace for more info)

For more information about this error, try rustc --explain E0599. error: could not compile zeitgeist-runtime due to 2 previous errors

You can reproduce this error by checking out the commit 097ef46 and building the crate zeitgeist-runtime: cargo build --manifest-path=./runtime/zeitgeist/Cargo.toml --features=parachain,try-runtime. This issue was fixed in the next commit c0ec18f. The fix comes from the Nimbus crate, commit 908bad9.

sea212 avatar Aug 02 '23 07:08 sea212