Skip to content

Commit 4b0b62b

Browse files
authored
Merge pull request #170 from AurevoirXavier/patch
Patch
2 parents e8e39be + f2c53e7 commit 4b0b62b

File tree

3 files changed

+196
-165
lines changed

3 files changed

+196
-165
lines changed

node/runtime/src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ construct_runtime!(
426426
{
427427
// Basic stuff; balances is uncallable initially.
428428
RandomnessCollectiveFlip: randomness_collective_flip::{Module, Call, Storage},
429-
System: system::{Module, Call, Storage, Config, Event},
429+
System: system::{Module, Call, Storage, Event, Config},
430430

431431
// Must be before session.
432432
Babe: babe::{Module, Call, Storage, Config, Inherent(Timestamp)},
@@ -439,8 +439,8 @@ construct_runtime!(
439439

440440
// Consensus support.
441441
Authorship: authorship::{Module, Call, Storage, Inherent},
442-
Grandpa: grandpa::{Module, Call, Storage, Config, Event},
443-
ImOnline: im_online::{Module, Call, Storage, Event<T>, ValidateUnsigned, Config<T>},
442+
Grandpa: grandpa::{Module, Call, Storage, Event, Config},
443+
ImOnline: im_online::{default, ValidateUnsigned},
444444
FinalityTracker: finality_tracker::{Module, Call, Inherent},
445445
Offences: offences::{Module, Call, Storage, Event},
446446
Session: session::{Module, Call, Storage, Event, Config<T>},
@@ -451,7 +451,7 @@ construct_runtime!(
451451
Utility: utility::{Module, Call, Event},
452452

453453
EthRelay: eth_relay::{Module, Call, Storage, Event<T>, Config},
454-
EthBacking: eth_backing::{Module, Call, Storage, Event<T>, Config<T>},
454+
EthBacking: eth_backing,
455455
}
456456
);
457457

srml/eth-backing/Cargo.toml

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,44 +8,42 @@ edition = "2018"
88

99
[dependencies]
1010
# crates.io
11-
serde = { version = "1.0.101", optional = true }
1211
codec = { package = "parity-scale-codec", version = "1.0.0", default-features = false, features = ["derive"] }
12+
hex = { version = "0.4", default-features = false }
13+
serde = { version = "1.0.101", optional = true }
1314

1415
# github.com
1516
rstd = { package = "sr-std", git = "https://github.com/darwinia-network/substrate.git", branch = "darwinia-develop", default-features = false }
1617
support = { package = "srml-support", git = "https://github.com/darwinia-network/substrate.git", branch = "darwinia-develop", default-features = false }
1718
system = { package = "srml-system", git = "https://github.com/darwinia-network/substrate.git", branch = "darwinia-develop", default-features = false }
1819
timestamp = { package = "srml-timestamp", git = "https://github.com/darwinia-network/substrate.git", branch = "darwinia-develop", default-features = false }
20+
sr-primitives = { git = "https://github.com/darwinia-network/substrate.git", branch = "darwinia-develop", default-features = false }
21+
primitives = { package = "substrate-primitives", git = "https://github.com/darwinia-network/substrate.git", branch = "darwinia-develop", default-features = false }
22+
ethabi = { git = "https://github.com/darwinia-network/ethabi.git", branch = "with_no_std", default-features = false }
1923

2024
# darwinia
2125
darwinia-support = { package = "darwinia-support", path = "../support", default-features = false }
2226
darwinia-eth-relay = { package = "darwinia-eth-relay", path = "../eth-relay", default-features = false }
2327
sr-eth-primitives = { path = "../../core/sr-eth-primitives", default-features = false }
2428

25-
sr-primitives = { git = "https://github.com/darwinia-network/substrate.git", branch = "darwinia-develop", default-features = false }
26-
27-
primitives = { package = "substrate-primitives", git = "https://github.com/darwinia-network/substrate.git", branch = "darwinia-develop", default-features = false }
28-
29-
ethabi = { git = "https://github.com/darwinia-network/ethabi.git", branch = "with_no_std", default-features = false }
30-
31-
hex = { version = "0.4", default-features = false}
32-
3329
[dev-dependencies]
3430
hex-literal = "0.2.1"
3531

3632
[features]
3733
default = ["std"]
3834
std = [
3935
"codec/std",
36+
"hex/std",
4037
"serde/std",
41-
"hex/std",
38+
39+
"ethabi/std",
4240
"rstd/std",
41+
"sr-primitives/std",
4342
"support/std",
4443
"system/std",
4544
"timestamp/std",
45+
4646
"darwinia-support/std",
4747
"darwinia-eth-relay/std",
4848
"sr-eth-primitives/std",
49-
"ethabi/std",
50-
"sr-primitives/std",
5149
]

0 commit comments

Comments
 (0)