Skip to content

Commit

Permalink
fix benchmarking build
Browse files Browse the repository at this point in the history
  • Loading branch information
clangenb committed Jun 26, 2024
1 parent 4882d65 commit ec8c6cb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions node/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ log = { workspace = true }
serde_json = { workspace = true }

frame-system = { workspace = true, features = ["std"] }
frame-metadata-hash-extension = { workspace = true, features = ["std"] }
pallet-asset-tx-payment = { workspace = true, features = ["std"] }
sc-cli = { workspace = true }
sc-client-api = { workspace = true }
Expand Down
2 changes: 2 additions & 0 deletions node/src/benchmarking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ pub fn create_benchmark_extrinsic(
frame_system::CheckNonce::<runtime::Runtime>::from(nonce),
frame_system::CheckWeight::<runtime::Runtime>::new(),
pallet_asset_tx_payment::ChargeAssetTxPayment::<runtime::Runtime>::from(0, None),
frame_metadata_hash_extension::CheckMetadataHash::<runtime::Runtime>::new(false),
);

let raw_payload = runtime::SignedPayload::from_raw(
Expand All @@ -134,6 +135,7 @@ pub fn create_benchmark_extrinsic(
(),
(),
(),
None,
),
);
let signature = raw_payload.using_encoded(|e| sender.sign(e));
Expand Down

0 comments on commit ec8c6cb

Please sign in to comment.