Skip to content

Commit

Permalink
Incorporate formatting suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
sea212 committed Oct 18, 2022
1 parent a350f05 commit 3e31ec2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
10 changes: 5 additions & 5 deletions runtime/common/src/lib.rs
Expand Up @@ -1371,11 +1371,11 @@ macro_rules! create_runtime_api {
tx: <Block as BlockT>::Extrinsic,
block_hash: <Block as BlockT>::Hash,
) -> TransactionValidity {
// Filtered calls should not enter the tx pool as they'll fail if inserted.
// If this call is not allowed, we return early.
if !<Runtime as frame_system::Config>::BaseCallFilter::contains(&tx.function) {
return frame_support::pallet_prelude::InvalidTransaction::Call.into();
}
// Filtered calls should not enter the tx pool as they'll fail if inserted.
// If this call is not allowed, we return early.
if !<Runtime as frame_system::Config>::BaseCallFilter::contains(&tx.function) {
return frame_support::pallet_prelude::InvalidTransaction::Call.into();
}

Executive::validate_transaction(source, tx, block_hash)
}
Expand Down
5 changes: 1 addition & 4 deletions zrml/prediction-markets/fuzz/Cargo.toml
Expand Up @@ -8,10 +8,7 @@ test = false
arbitrary = { features = ["derive"], version = "1.0" }
frame-support = { branch = "polkadot-v0.9.23", default-features = false, git = "https://github.com/paritytech/substrate" }
libfuzzer-sys = "0.4"
zeitgeist-primitives = { features = [
"arbitrary",
"mock",
], default-features = false, path = "../../../primitives" }
zeitgeist-primitives = { features = [ "arbitrary", "mock"], default-features = false, path = "../../../primitives" }
zrml-prediction-markets = { features = ["mock"], path = ".." }
zrml-simple-disputes = { path = "../../simple-disputes" }

Expand Down

0 comments on commit 3e31ec2

Please sign in to comment.