Skip to content

Commit

Permalink
Update Polkadot-sdk to v1.3.0 (#198)
Browse files Browse the repository at this point in the history
* update polkadot-sdk to v1.3.0

* fix compilation errors

* fix warnings

* fix tests compilation
  • Loading branch information
ahmadkaouk authored Nov 28, 2023
1 parent 176cb34 commit 1bc27b1
Show file tree
Hide file tree
Showing 11 changed files with 544 additions and 342 deletions.
733 changes: 467 additions & 266 deletions Cargo.lock

Large diffs are not rendered by default.

136 changes: 68 additions & 68 deletions Cargo.toml

Large diffs are not rendered by default.

7 changes: 3 additions & 4 deletions client/rpc/src/eth/submit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ use sp_api::{ApiExt, ProvideRuntimeApi};
use sp_block_builder::BlockBuilder as BlockBuilderApi;
use sp_blockchain::HeaderBackend;
use sp_inherents::CreateInherentDataProviders;
use sp_runtime::{
generic::BlockId, traits::Block as BlockT, transaction_validity::TransactionSource,
use sp_runtime::{traits::Block as BlockT, transaction_validity::TransactionSource,
};
// Frontier
use fc_rpc_core::types::*;
Expand Down Expand Up @@ -151,7 +150,7 @@ where

self.pool
.submit_one(
&BlockId::Hash(block_hash),
block_hash,
TransactionSource::Local,
extrinsic,
)
Expand All @@ -178,7 +177,7 @@ where

self.pool
.submit_one(
&BlockId::Hash(block_hash),
block_hash,
TransactionSource::Local,
extrinsic,
)
Expand Down
2 changes: 0 additions & 2 deletions frame/dynamic-fee/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ frame-support = { workspace = true }
frame-system = { workspace = true }
sp-core = { workspace = true }
sp-inherents = { workspace = true }
sp-runtime = { workspace = true }
sp-std = { workspace = true }
# Frontier
fp-dynamic-fee = { workspace = true }
Expand All @@ -38,7 +37,6 @@ std = [
# Substrate
"sp-core/std",
"sp-inherents/std",
"sp-runtime/std",
"sp-std/std",
# Substrate
"frame-system/std",
Expand Down
1 change: 1 addition & 0 deletions frame/ethereum/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ impl pallet_balances::Config for Test {
type MaxReserves = ();
type MaxHolds = ();
type MaxFreezes = ();
type RuntimeFreezeReason = ();
}

parameter_types! {
Expand Down
2 changes: 0 additions & 2 deletions frame/evm-chain-id/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ scale-info = { workspace = true }
# Substrate
frame-support = { workspace = true }
frame-system = { workspace = true }
sp-runtime = { workspace = true }

[features]
default = ["std"]
Expand All @@ -26,7 +25,6 @@ std = [
# Substrate
"frame-support/std",
"frame-system/std",
"sp-runtime/std",
]
try-runtime = [
"frame-support/try-runtime",
Expand Down
1 change: 1 addition & 0 deletions frame/evm/precompile/dispatch/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ impl pallet_balances::Config for Test {
type MaxReserves = ();
type MaxHolds = ();
type MaxFreezes = ();
type RuntimeFreezeReason = ();
}

parameter_types! {
Expand Down
1 change: 1 addition & 0 deletions frame/evm/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ impl pallet_balances::Config for Test {
type MaxReserves = ();
type MaxHolds = ();
type MaxFreezes = ();
type RuntimeFreezeReason = ();
}

parameter_types! {
Expand Down
1 change: 1 addition & 0 deletions precompiles/tests-external/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ impl pallet_balances::Config for Runtime {
type MaxReserves = ();
type MaxHolds = ();
type MaxFreezes = ();
type RuntimeFreezeReason = ();
}

#[derive(Debug, Clone)]
Expand Down
1 change: 1 addition & 0 deletions template/node/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,7 @@ where
import_queue,
block_announce_validator_builder: None,
warp_sync_params,
block_relay: None,
})?;

if config.offchain_worker.enabled {
Expand Down
1 change: 1 addition & 0 deletions template/runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ impl pallet_balances::Config for Runtime {
type MaxReserves = ();
type MaxHolds = ();
type MaxFreezes = ();
type RuntimeFreezeReason = ();
}

parameter_types! {
Expand Down

0 comments on commit 1bc27b1

Please sign in to comment.