Skip to content

Commit

Permalink
desperate attempts to get it working
Browse files Browse the repository at this point in the history
  • Loading branch information
wischli committed Jul 6, 2024
1 parent 4f58c15 commit a882fd9
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 11 deletions.
5 changes: 3 additions & 2 deletions runtime/altair/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ pallet-xcm-transactor = { workspace = true }
staging-parachain-info = { workspace = true }

[build-dependencies]
substrate-wasm-builder = { workspace = true }
substrate-wasm-builder = { workspace = true, optional = true }

[features]
default = ["std"]
Expand All @@ -157,6 +157,7 @@ std = [
"serde/std",
"log/std",
# Substrate related
"substrate-wasm-builder",
"sp-api/std",
"sp-arithmetic/std",
"sp-runtime/std",
Expand Down Expand Up @@ -459,7 +460,7 @@ try-runtime = [
# generate the metadata hash and then a second time with the
# `RUNTIME_METADATA_HASH` environment variable set for the `CheckMetadataHash`
# extension.
metadata-hash = ["substrate-wasm-builder/metadata-hash"]
metadata-hash = ["substrate-wasm-builder?/metadata-hash"]

# A feature that should be enabled when the runtime should be build for on-chain
# deployment. This will disable stuff that shouldn't be part of the on-chain wasm
Expand Down
2 changes: 1 addition & 1 deletion runtime/altair/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2053,8 +2053,8 @@ pub type SignedExtra = (
frame_system::CheckNonce<Runtime>,
frame_system::CheckWeight<Runtime>,
pallet_transaction_payment::ChargeTransactionPayment<Runtime>,
frame_metadata_hash_extension::CheckMetadataHash<Runtime>,
runtime_common::transfer_filter::PreBalanceTransferExtension<Runtime>,
frame_metadata_hash_extension::CheckMetadataHash<Runtime>,
);

/// Unchecked extrinsic type as expected by this runtime.
Expand Down
5 changes: 3 additions & 2 deletions runtime/centrifuge/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ pallet-xcm-transactor = { workspace = true }
staging-parachain-info = { workspace = true }

[build-dependencies]
substrate-wasm-builder = { workspace = true }
substrate-wasm-builder = { workspace = true, optional = true }

[features]
default = ["std"]
Expand All @@ -166,6 +166,7 @@ std = [
"sp-transaction-pool/std",
"sp-version/std",
"sp-staking/std",
"substrate-wasm-builder",
"frame-support/std",
"frame-system/std",
"frame-system-rpc-runtime-api/std",
Expand Down Expand Up @@ -441,7 +442,7 @@ try-runtime = [
# generate the metadata hash and then a second time with the
# `RUNTIME_METADATA_HASH` environment variable set for the `CheckMetadataHash`
# extension.
metadata-hash = ["substrate-wasm-builder/metadata-hash"]
metadata-hash = ["substrate-wasm-builder?/metadata-hash"]

# A feature that should be enabled when the runtime should be build for on-chain
# deployment. This will disable stuff that shouldn't be part of the on-chain wasm
Expand Down
2 changes: 1 addition & 1 deletion runtime/centrifuge/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2064,8 +2064,8 @@ pub type SignedExtra = (
frame_system::CheckNonce<Runtime>,
frame_system::CheckWeight<Runtime>,
pallet_transaction_payment::ChargeTransactionPayment<Runtime>,
frame_metadata_hash_extension::CheckMetadataHash<Runtime>,
runtime_common::transfer_filter::PreBalanceTransferExtension<Runtime>,
frame_metadata_hash_extension::CheckMetadataHash<Runtime>,
);

/// Unchecked extrinsic type as expected by this runtime.
Expand Down
5 changes: 3 additions & 2 deletions runtime/development/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ pallet-xcm-transactor = { workspace = true }
staging-parachain-info = { workspace = true }

[build-dependencies]
substrate-wasm-builder = { workspace = true }
substrate-wasm-builder = { workspace = true, optional = true }

[features]
default = ["std"]
Expand All @@ -173,6 +173,7 @@ std = [
"sp-transaction-pool/std",
"sp-version/std",
"sp-staking/std",
"substrate-wasm-builder",
"frame-support/std",
"frame-system/std",
"frame-system-rpc-runtime-api/std",
Expand Down Expand Up @@ -463,7 +464,7 @@ try-runtime = [
# generate the metadata hash and then a second time with the
# `RUNTIME_METADATA_HASH` environment variable set for the `CheckMetadataHash`
# extension.
metadata-hash = ["substrate-wasm-builder/metadata-hash"]
metadata-hash = ["substrate-wasm-builder?/metadata-hash"]

# A feature that should be enabled when the runtime should be build for on-chain
# deployment. This will disable stuff that shouldn't be part of the on-chain wasm
Expand Down
2 changes: 1 addition & 1 deletion runtime/development/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2154,8 +2154,8 @@ pub type SignedExtra = (
frame_system::CheckNonce<Runtime>,
frame_system::CheckWeight<Runtime>,
pallet_transaction_payment::ChargeTransactionPayment<Runtime>,
frame_metadata_hash_extension::CheckMetadataHash<Runtime>,
runtime_common::transfer_filter::PreBalanceTransferExtension<Runtime>,
frame_metadata_hash_extension::CheckMetadataHash<Runtime>,
);
/// Unchecked extrinsic type as expected by this runtime.
pub type UncheckedExtrinsic =
Expand Down
2 changes: 1 addition & 1 deletion runtime/integration-tests/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -296,8 +296,8 @@ pub trait Runtime:
frame_system::CheckNonce<Self>,
frame_system::CheckWeight<Self>,
pallet_transaction_payment::ChargeTransactionPayment<Self>,
frame_metadata_hash_extension::CheckMetadataHash<Self>,
runtime_common::transfer_filter::PreBalanceTransferExtension<Self>,
frame_metadata_hash_extension::CheckMetadataHash<Self>,
),
>,
>;
Expand Down
2 changes: 1 addition & 1 deletion runtime/integration-tests/src/env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -255,8 +255,8 @@ pub mod utils {
frame_system::CheckNonce::<T>::from(nonce),
frame_system::CheckWeight::<T>::new(),
pallet_transaction_payment::ChargeTransactionPayment::<T>::from(0),
frame_metadata_hash_extension::CheckMetadataHash::<T>::new(false),
runtime_common::transfer_filter::PreBalanceTransferExtension::<T>::new(),
frame_metadata_hash_extension::CheckMetadataHash::<T>::new(false),
);

let raw_payload = SignedPayload::new(runtime_call.clone(), signed_extra.clone()).unwrap();
Expand Down

0 comments on commit a882fd9

Please sign in to comment.