Skip to content

Commit 6642454

Browse files
committed
Fix compilation
1 parent f505fc8 commit 6642454

File tree

9 files changed

+12222
-34
lines changed

9 files changed

+12222
-34
lines changed

Cargo.lock

+12,209
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-2
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ rayon = "1"
5555
build-print = "0.1"
5656
cargo-husky = { version = "1", default-features = false }
5757
clap = "4.5.4"
58-
codec = { version = "3.2.2", default-features = false }
5958
ed25519-dalek = { version = "2.1.0", default-features = false, features = [
6059
"alloc",
6160
] }
@@ -69,7 +68,7 @@ memmap2 = "0.9.4"
6968
ndarray = { version = "0.15.6", default-features = false }
7069
parity-util-mem = "0.12.0"
7170
rand = "0.8.5"
72-
scale-codec = { package = "parity-scale-codec", version = "3.6.12", default-features = false, features = [
71+
codec = { package = "parity-scale-codec", version = "3.6.12", default-features = false, features = [
7372
"derive",
7473
] }
7574
scale-info = { version = "2.11.2", default-features = false }

node/Cargo.toml

-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ name = "node-subtensor"
2323
async-trait = { workspace = true }
2424
clap = { workspace = true, features = ["derive"] }
2525
futures = { workspace = true, features = ["thread-pool"] }
26-
scale-codec = { workspace = true }
2726
serde = { workspace = true, features = ["derive"] }
2827

2928
# Storage import
@@ -45,7 +44,6 @@ sp-consensus-aura = { workspace = true }
4544
sp-consensus = { workspace = true }
4645
sc-consensus = { workspace = true }
4746
sc-consensus-grandpa = { workspace = true }
48-
sc-consensus-grandpa-rpc = { workspace = true }
4947
sp-consensus-grandpa = { workspace = true }
5048
sc-chain-spec-derive = { workspace = true }
5149
sc-chain-spec = { workspace = true }

pallets/admin-utils/Cargo.toml

+1-3
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@ targets = ["x86_64-unknown-linux-gnu"]
1717

1818
[dependencies]
1919
subtensor-macros.workspace = true
20-
codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = [
21-
"derive",
22-
] }
20+
codec = { workspace = true }
2321
scale-info = { workspace = true, features = ["derive"] }
2422
frame-benchmarking = { workspace = true, optional = true }
2523
frame-support = { workspace = true }

pallets/collective/Cargo.toml

+2-4
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@ targets = ["x86_64-unknown-linux-gnu"]
1717

1818
[dependencies]
1919
subtensor-macros.workspace = true
20-
codec = { package = "parity-scale-codec", version = "3.2.2", default-features = false, features = [
21-
"derive",
22-
] }
20+
codec = { workspace = true }
2321
log = { workspace = true }
2422
scale-info = { workspace = true, features = ["derive"] }
2523
frame-benchmarking = { workspace = true, optional = true }
@@ -56,5 +54,5 @@ runtime-benchmarks = [
5654
try-runtime = [
5755
"frame-support/try-runtime",
5856
"frame-system/try-runtime",
59-
"sp-runtime/try-runtime"
57+
"sp-runtime/try-runtime",
6058
]

pallets/commitments/Cargo.toml

+4-7
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,7 @@ targets = ["x86_64-unknown-linux-gnu"]
1717

1818
[dependencies]
1919
subtensor-macros.workspace = true
20-
codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = [
21-
"derive",
22-
"max-encoded-len",
23-
] }
20+
codec = { workspace = true, features = ["derive", "max-encoded-len"] }
2421
scale-info = { workspace = true, features = ["derive"] }
2522
frame-benchmarking = { workspace = true, optional = true }
2623
frame-support = { workspace = true }
@@ -50,18 +47,18 @@ std = [
5047
"enumflags2/std",
5148
"pallet-balances/std",
5249
"sp-core/std",
53-
"sp-io/std"
50+
"sp-io/std",
5451
]
5552
runtime-benchmarks = [
5653
"frame-benchmarking/runtime-benchmarks",
5754
"frame-support/runtime-benchmarks",
5855
"frame-system/runtime-benchmarks",
5956
"sp-runtime/runtime-benchmarks",
60-
"pallet-balances/runtime-benchmarks"
57+
"pallet-balances/runtime-benchmarks",
6158
]
6259
try-runtime = [
6360
"frame-support/try-runtime",
6461
"frame-system/try-runtime",
6562
"pallet-balances/try-runtime",
66-
"sp-runtime/try-runtime"
63+
"sp-runtime/try-runtime",
6764
]

pallets/registry/Cargo.toml

+3-6
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,7 @@ targets = ["x86_64-unknown-linux-gnu"]
1717

1818
[dependencies]
1919
subtensor-macros.workspace = true
20-
codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = [
21-
"derive",
22-
"max-encoded-len",
23-
] }
20+
codec = { workspace = true, features = ["derive", "max-encoded-len"] }
2421
scale-info = { workspace = true, features = ["derive"] }
2522
frame-benchmarking = { workspace = true, optional = true }
2623
frame-support = { workspace = true }
@@ -48,7 +45,7 @@ std = [
4845
"sp-runtime/std",
4946
"enumflags2/std",
5047
"sp-core/std",
51-
"sp-io/std"
48+
"sp-io/std",
5249
]
5350
runtime-benchmarks = [
5451
"frame-benchmarking/runtime-benchmarks",
@@ -59,5 +56,5 @@ runtime-benchmarks = [
5956
try-runtime = [
6057
"frame-support/try-runtime",
6158
"frame-system/try-runtime",
62-
"sp-runtime/try-runtime"
59+
"sp-runtime/try-runtime",
6360
]

pallets/subtensor/Cargo.toml

+1-3
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@ targets = ["x86_64-unknown-linux-gnu"]
1717

1818
[dependencies]
1919
subtensor-macros.workspace = true
20-
codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = [
21-
"derive",
22-
] }
20+
codec = { workspace = true }
2321
sp-core = { workspace = true }
2422
pallet-balances = { workspace = true }
2523
scale-info = { workspace = true, features = ["derive"] }

runtime/Cargo.toml

+1-7
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@ subtensor-macros.workspace = true
2525
subtensor-custom-rpc-runtime-api = { workspace = true }
2626
smallvec = { workspace = true }
2727
log = { workspace = true }
28-
codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = [
29-
"derive",
30-
] }
28+
codec = { workspace = true }
3129
scale-info = { workspace = true, features = ["derive"] }
3230
serde_json = { workspace = true, features = ["alloc"] }
3331
pallet-aura = { workspace = true }
@@ -108,7 +106,6 @@ pallet-evm-chain-id = { workspace = true }
108106
pallet-evm-precompile-modexp = { workspace = true }
109107
pallet-evm-precompile-sha3fips = { workspace = true }
110108
pallet-evm-precompile-simple = { workspace = true }
111-
pallet-hotfix-sufficients = { workspace = true }
112109
fp-account = { workspace = true }
113110

114111
[dev-dependencies]
@@ -191,7 +188,6 @@ std = [
191188
"pallet-evm-precompile-modexp/std",
192189
"pallet-evm-precompile-sha3fips/std",
193190
"pallet-evm-precompile-simple/std",
194-
"pallet-hotfix-sufficients/std",
195191
"fp-account/std",
196192
]
197193
runtime-benchmarks = [
@@ -220,7 +216,6 @@ runtime-benchmarks = [
220216
# EVM + Frontier
221217
"pallet-ethereum/runtime-benchmarks",
222218
"pallet-evm/runtime-benchmarks",
223-
"pallet-hotfix-sufficients/runtime-benchmarks",
224219
]
225220
try-runtime = [
226221
"frame-try-runtime/try-runtime",
@@ -231,7 +226,6 @@ try-runtime = [
231226
"pallet-sudo/try-runtime",
232227
"pallet-balances/try-runtime",
233228
"pallet-grandpa/try-runtime",
234-
"pallet-hotfix-sufficients/try-runtime",
235229
"pallet-insecure-randomness-collective-flip/try-runtime",
236230
"pallet-timestamp/try-runtime",
237231
"pallet-transaction-payment/try-runtime",

0 commit comments

Comments
 (0)