Tweak the Substrate runtime as required by the Rust version bump performed

This commit is contained in:
Luke Parker
2025-08-08 23:58:25 -04:00
parent bb726b58af
commit 23f986f57a
2 changed files with 6 additions and 8 deletions

View File

@@ -1,5 +1,10 @@
use substrate_wasm_builder::WasmBuilder;
fn main() {
WasmBuilder::new().with_current_project().export_heap_base().import_memory().build()
WasmBuilder::new()
.with_current_project()
.disable_runtime_version_section_check()
.export_heap_base()
.import_memory()
.build()
}

View File

@@ -216,7 +216,6 @@ impl TryInto<Call> for RuntimeCall {
coins::Call::burn_with_instruction { instruction } => {
serai_abi::coins::Call::burn_with_instruction { instruction }
}
_ => Err(())?,
}),
RuntimeCall::LiquidityTokens(call) => Call::LiquidityTokens(match call {
coins::Call::transfer { to, balance } => {
@@ -270,7 +269,6 @@ impl TryInto<Call> for RuntimeCall {
send_to: send_to.into(),
}
}
_ => Err(())?,
}),
RuntimeCall::GenesisLiquidity(call) => Call::GenesisLiquidity(match call {
genesis_liquidity::Call::remove_coin_liquidity { balance } => {
@@ -279,7 +277,6 @@ impl TryInto<Call> for RuntimeCall {
genesis_liquidity::Call::oraclize_values { values, signature } => {
serai_abi::genesis_liquidity::Call::oraclize_values { values, signature }
}
_ => Err(())?,
}),
RuntimeCall::ValidatorSets(call) => Call::ValidatorSets(match call {
validator_sets::Call::set_keys { network, removed_participants, key_pair, signature } => {
@@ -315,13 +312,11 @@ impl TryInto<Call> for RuntimeCall {
validator_sets::Call::claim_deallocation { network, session } => {
serai_abi::validator_sets::Call::claim_deallocation { network, session }
}
_ => Err(())?,
}),
RuntimeCall::InInstructions(call) => Call::InInstructions(match call {
in_instructions::Call::execute_batch { batch } => {
serai_abi::in_instructions::Call::execute_batch { batch }
}
_ => Err(())?,
}),
RuntimeCall::Signals(call) => Call::Signals(match call {
signals::Call::register_retirement_signal { in_favor_of } => {
@@ -339,7 +334,6 @@ impl TryInto<Call> for RuntimeCall {
signals::Call::stand_against { signal_id, for_network } => {
serai_abi::signals::Call::stand_against { signal_id, for_network }
}
_ => Err(())?,
}),
RuntimeCall::Babe(call) => Call::Babe(match call {
babe::Call::report_equivocation { equivocation_proof, key_owner_proof } => {
@@ -377,7 +371,6 @@ impl TryInto<Call> for RuntimeCall {
}
_ => Err(())?,
}),
_ => Err(())?,
})
}
}