mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 12:51:02 +00:00
Update Substrate & Polkadot (#41)
This commit is contained in:
Generated
+547
-512
File diff suppressed because it is too large
Load Diff
@@ -59,6 +59,7 @@ fn call_validate_block(
|
|||||||
&mut ext_ext,
|
&mut ext_ext,
|
||||||
&WASM_BINARY,
|
&WASM_BINARY,
|
||||||
1024,
|
1024,
|
||||||
|
false,
|
||||||
)
|
)
|
||||||
.map(|v| ValidationResult::decode(&mut &v[..]).expect("Decode `ValidationResult`."))
|
.map(|v| ValidationResult::decode(&mut &v[..]).expect("Decode `ValidationResult`."))
|
||||||
.map(|v| Header::decode(&mut &v.head_data[..]).expect("Decode `Header`."))
|
.map(|v| Header::decode(&mut &v.head_data[..]).expect("Decode `Header`."))
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ include!(concat!(env!("OUT_DIR"), "/wasm_binary.rs"));
|
|||||||
use sp_api::impl_runtime_apis;
|
use sp_api::impl_runtime_apis;
|
||||||
use sp_core::OpaqueMetadata;
|
use sp_core::OpaqueMetadata;
|
||||||
use sp_runtime::traits::{
|
use sp_runtime::traits::{
|
||||||
BlakeTwo256, Block as BlockT, ConvertInto, NumberFor, StaticLookup, Verify,
|
BlakeTwo256, Block as BlockT, ConvertInto, StaticLookup, Verify,
|
||||||
};
|
};
|
||||||
use sp_runtime::{
|
use sp_runtime::{
|
||||||
create_runtime_str, generic, impl_opaque_keys, transaction_validity::TransactionValidity,
|
create_runtime_str, generic, impl_opaque_keys, transaction_validity::TransactionValidity,
|
||||||
@@ -216,6 +216,7 @@ impl pallet_balances::Trait for Runtime {
|
|||||||
type ExistentialDeposit = ExistentialDeposit;
|
type ExistentialDeposit = ExistentialDeposit;
|
||||||
type TransferFee = TransferFee;
|
type TransferFee = TransferFee;
|
||||||
type CreationFee = CreationFee;
|
type CreationFee = CreationFee;
|
||||||
|
type OnReapAccount = System;
|
||||||
}
|
}
|
||||||
|
|
||||||
impl pallet_transaction_payment::Trait for Runtime {
|
impl pallet_transaction_payment::Trait for Runtime {
|
||||||
@@ -331,8 +332,8 @@ impl_runtime_apis! {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl sp_offchain::OffchainWorkerApi<Block> for Runtime {
|
impl sp_offchain::OffchainWorkerApi<Block> for Runtime {
|
||||||
fn offchain_worker(number: NumberFor<Block>) {
|
fn offchain_worker(header: &<Block as BlockT>::Header) {
|
||||||
Executive::offchain_worker(number)
|
Executive::offchain_worker(header)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user