Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit 1aab334

Browse files
authored
Use DecodeLimit for decoding XCM messages (#605)
* Use DecodeLimit for decoding XCM messages * Use decode_all_with_depth_limit in appropriate places * Use decode_all while decoding byte vector * cargo fmt
1 parent 85bde07 commit 1aab334

File tree

34 files changed

+82
-61
lines changed

34 files changed

+82
-61
lines changed

Cargo.lock

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/collator/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ cumulus-client-consensus-common = { path = "../consensus/common" }
2424
cumulus-primitives-core = { path = "../../primitives/core" }
2525

2626
# Other dependencies
27-
codec = { package = "parity-scale-codec", version = "2.0.0", features = [ "derive" ] }
27+
codec = { package = "parity-scale-codec", version = "2.3.0", features = [ "derive" ] }
2828
futures = { version = "0.3.1", features = ["compat"] }
2929
parking_lot = "0.10.2"
3030
tracing = "0.1.25"

client/consensus/aura/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@ cumulus-primitives-core = { path = "../../../primitives/core" }
3333

3434
# Other deps
3535
futures = { version = "0.3.8", features = ["compat"] }
36-
codec = { package = "parity-scale-codec", version = "2.0.0", features = [ "derive" ] }
36+
codec = { package = "parity-scale-codec", version = "2.3.0", features = [ "derive" ] }
3737
tracing = "0.1.22"
3838
async-trait = "0.1.42"

client/consensus/common/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ polkadot-primitives = { git = "https://github.com/paritytech/polkadot", branch =
2020

2121
# Other deps
2222
futures = { version = "0.3.8", features = ["compat"] }
23-
codec = { package = "parity-scale-codec", version = "2.0.0", features = [ "derive" ] }
23+
codec = { package = "parity-scale-codec", version = "2.3.0", features = [ "derive" ] }
2424
tracing = "0.1.25"
2525
async-trait = "0.1.42"
2626
dyn-clone = "1.0.4"

client/network/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ polkadot-client = { git = "https://github.com/paritytech/polkadot", branch = "ma
2121
polkadot-parachain = { git = "https://github.com/paritytech/polkadot", branch = "master" }
2222

2323
# other deps
24-
codec = { package = "parity-scale-codec", version = "2.0.0", features = [ "derive" ] }
24+
codec = { package = "parity-scale-codec", version = "2.3.0", features = [ "derive" ] }
2525
futures = { version = "0.3.1", features = ["compat"] }
2626
futures-timer = "3.0.2"
2727
tracing = "0.1.22"

client/pov-recovery/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ polkadot-node-subsystem = { git = "https://github.com/paritytech/polkadot", bran
2424
cumulus-primitives-core = { path = "../../primitives/core" }
2525

2626
# other deps
27-
codec = { package = "parity-scale-codec", version = "2.0.0", features = [ "derive" ] }
27+
codec = { package = "parity-scale-codec", version = "2.3.0", features = [ "derive" ] }
2828
futures = { version = "0.3.1", features = ["compat"] }
2929
futures-timer = "3.0.2"
3030
tracing = "0.1.22"

client/service/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@ polkadot-overseer = { git = "https://github.com/paritytech/polkadot", branch = "
3232

3333
# Other deps
3434
tracing = "0.1.22"
35-
codec = { package = "parity-scale-codec", version = "2.0.0" }
35+
codec = { package = "parity-scale-codec", version = "2.3.0" }
3636
parking_lot = "0.10.2"

pallets/aura-ext/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ sp-runtime = { git = "https://github.com/paritytech/substrate", default-features
1717
sp-application-crypto = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" }
1818

1919
# Other Dependencies
20-
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false, features = ["derive"]}
20+
codec = { package = "parity-scale-codec", version = "2.3.0", default-features = false, features = ["derive"]}
2121
scale-info = { version = "1.0.0", default-features = false, features = ["derive"] }
2222
serde = { version = "1.0.101", optional = true, features = ["derive"] }
2323

pallets/collator-selection/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ targets = ['x86_64-unknown-linux-gnu']
1414

1515
[dependencies]
1616
log = { version = "0.4.0", default-features = false }
17-
codec = { default-features = false, features = ['derive'], package = 'parity-scale-codec', version = '2.0.0' }
17+
codec = { default-features = false, features = ['derive'], package = 'parity-scale-codec', version = '2.3.0' }
1818
scale-info = { version = "1.0.0", default-features = false, features = ["derive"] }
1919
serde = { version = "1.0.119", default-features = false }
2020
sp-std = { default-features = false, git = 'https://github.com/paritytech/substrate', branch = "master" }

pallets/dmp-queue/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ edition = "2018"
66

77
[dependencies]
88
# Other dependencies
9-
codec = { package = "parity-scale-codec", version = "2.0.0", features = [ "derive" ], default-features = false }
9+
codec = { package = "parity-scale-codec", version = "2.3.0", features = [ "derive" ], default-features = false }
1010
scale-info = { version = "1.0.0", default-features = false, features = ["derive"] }
1111
log = { version = "0.4.14", default-features = false }
1212

pallets/dmp-queue/src/lib.rs

+7-4
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
2222
#![cfg_attr(not(feature = "std"), no_std)]
2323

24-
use codec::{Decode, Encode};
24+
use codec::{Decode, DecodeLimit, Encode};
2525
use cumulus_primitives_core::{relay_chain::BlockNumber as RelayBlockNumber, DmpMessageHandler};
2626
use frame_support::{
2727
dispatch::Weight, traits::EnsureOrigin, weights::constants::WEIGHT_PER_MILLIS,
@@ -30,7 +30,7 @@ pub use pallet::*;
3030
use scale_info::TypeInfo;
3131
use sp_runtime::RuntimeDebug;
3232
use sp_std::{convert::TryFrom, prelude::*};
33-
use xcm::{latest::prelude::*, VersionedXcm};
33+
use xcm::{latest::prelude::*, VersionedXcm, MAX_XCM_DECODE_DEPTH};
3434

3535
#[derive(Copy, Clone, Eq, PartialEq, Encode, Decode, RuntimeDebug, TypeInfo)]
3636
pub struct ConfigData {
@@ -225,8 +225,11 @@ pub mod pallet {
225225
data: &[u8],
226226
) -> Result<Weight, (MessageId, Weight)> {
227227
let id = sp_io::hashing::blake2_256(&data[..]);
228-
let maybe_msg =
229-
VersionedXcm::<T::Call>::decode(&mut &data[..]).map(Xcm::<T::Call>::try_from);
228+
let maybe_msg = VersionedXcm::<T::Call>::decode_all_with_depth_limit(
229+
MAX_XCM_DECODE_DEPTH,
230+
&mut &data[..],
231+
)
232+
.map(Xcm::<T::Call>::try_from);
230233
match maybe_msg {
231234
Err(_) => {
232235
Self::deposit_event(Event::InvalidFormat(id));

pallets/parachain-system/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ sp-trie = { git = "https://github.com/paritytech/substrate", default-features =
3030
sp-externalities = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" }
3131

3232
# Other Dependencies
33-
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false, features = ["derive"]}
33+
codec = { package = "parity-scale-codec", version = "2.3.0", default-features = false, features = ["derive"]}
3434
scale-info = { version = "1.0.0", default-features = false, features = ["derive"] }
3535
serde = { version = "1.0.101", optional = true, features = ["derive"] }
3636
log = { version = "0.4.14", default-features = false }

pallets/xcm/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ name = "cumulus-pallet-xcm"
55
version = "0.1.0"
66

77
[dependencies]
8-
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false, features = ["derive"] }
8+
codec = { package = "parity-scale-codec", version = "2.3.0", default-features = false, features = ["derive"] }
99
scale-info = { version = "1.0.0", default-features = false, features = ["derive"] }
1010
serde = { version = "1.0.101", optional = true, features = ["derive"] }
1111

pallets/xcm/src/lib.rs

+12-4
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
2121
#![cfg_attr(not(feature = "std"), no_std)]
2222

23-
use codec::{Decode, Encode};
23+
use codec::{Decode, DecodeLimit, Encode};
2424
use cumulus_primitives_core::{
2525
relay_chain::BlockNumber as RelayBlockNumber, DmpMessageHandler, ParaId,
2626
};
@@ -31,7 +31,7 @@ use sp_runtime::traits::BadOrigin;
3131
use sp_std::{convert::TryFrom, prelude::*};
3232
use xcm::{
3333
latest::{ExecuteXcm, Outcome, Parent, Xcm},
34-
VersionedXcm,
34+
VersionedXcm, MAX_XCM_DECODE_DEPTH,
3535
};
3636

3737
#[frame_support::pallet]
@@ -115,7 +115,11 @@ impl<T: Config> DmpMessageHandler for UnlimitedDmpExecution<T> {
115115
let mut used = 0;
116116
for (_sent_at, data) in iter {
117117
let id = sp_io::hashing::twox_64(&data[..]);
118-
let msg = VersionedXcm::<T::Call>::decode(&mut &data[..]).map(Xcm::<T::Call>::try_from);
118+
let msg = VersionedXcm::<T::Call>::decode_all_with_depth_limit(
119+
MAX_XCM_DECODE_DEPTH,
120+
&mut &data[..],
121+
)
122+
.map(Xcm::<T::Call>::try_from);
119123
match msg {
120124
Err(_) => Pallet::<T>::deposit_event(Event::InvalidFormat(id)),
121125
Ok(Err(())) => Pallet::<T>::deposit_event(Event::UnsupportedVersion(id)),
@@ -144,7 +148,11 @@ impl<T: Config> DmpMessageHandler for LimitAndDropDmpExecution<T> {
144148
let mut used = 0;
145149
for (_sent_at, data) in iter {
146150
let id = sp_io::hashing::twox_64(&data[..]);
147-
let msg = VersionedXcm::<T::Call>::decode(&mut &data[..]).map(Xcm::<T::Call>::try_from);
151+
let msg = VersionedXcm::<T::Call>::decode_all_with_depth_limit(
152+
MAX_XCM_DECODE_DEPTH,
153+
&mut &data[..],
154+
)
155+
.map(Xcm::<T::Call>::try_from);
148156
match msg {
149157
Err(_) => Pallet::<T>::deposit_event(Event::InvalidFormat(id)),
150158
Ok(Err(())) => Pallet::<T>::deposit_event(Event::UnsupportedVersion(id)),

pallets/xcmp-queue/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ edition = "2018"
66

77
[dependencies]
88
# Other dependencies
9-
codec = { package = "parity-scale-codec", version = "2.0.0", features = [ "derive" ], default-features = false }
9+
codec = { package = "parity-scale-codec", version = "2.3.0", features = [ "derive" ], default-features = false }
10+
rand_chacha = { version = "0.3.0", default-features = false }
1011
scale-info = { version = "1.0.0", default-features = false, features = ["derive"] }
1112
log = { version = "0.4.14", default-features = false }
12-
rand_chacha = { version = "0.3.0", default-features = false }
1313

1414
# Substrate Dependencies
1515
sp-std = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" }

pallets/xcmp-queue/src/lib.rs

+16-6
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ mod mock;
3131
#[cfg(test)]
3232
mod tests;
3333

34-
use codec::{Decode, Encode};
34+
use codec::{Decode, DecodeAll, DecodeLimit, Encode};
3535
use cumulus_primitives_core::{
3636
relay_chain::BlockNumber as RelayBlockNumber, ChannelStatus, GetChannelInfo, MessageSendError,
3737
ParaId, XcmpMessageFormat, XcmpMessageHandler, XcmpMessageSource,
@@ -44,7 +44,7 @@ use rand_chacha::{
4444
use scale_info::TypeInfo;
4545
use sp_runtime::{traits::Hash, RuntimeDebug};
4646
use sp_std::{convert::TryFrom, prelude::*};
47-
use xcm::{latest::prelude::*, VersionedXcm, WrapVersion};
47+
use xcm::{latest::prelude::*, VersionedXcm, WrapVersion, MAX_XCM_DECODE_DEPTH};
4848

4949
pub use pallet::*;
5050

@@ -249,7 +249,11 @@ impl<T: Config> Pallet<T> {
249249
let have_active = s[index].4 > s[index].3;
250250
let appended = have_active &&
251251
<OutboundXcmpMessages<T>>::mutate(recipient, s[index].4 - 1, |s| {
252-
if XcmpMessageFormat::decode(&mut &s[..]) != Ok(format) {
252+
if XcmpMessageFormat::decode_and_advance_with_depth_limit(
253+
MAX_XCM_DECODE_DEPTH,
254+
&mut &s[..],
255+
) != Ok(format)
256+
{
253257
return false
254258
}
255259
if s.len() + data.len() > max_message_size {
@@ -371,7 +375,10 @@ impl<T: Config> Pallet<T> {
371375
XcmpMessageFormat::ConcatenatedVersionedXcm => {
372376
while !remaining_fragments.is_empty() {
373377
last_remaining_fragments = remaining_fragments;
374-
if let Ok(xcm) = VersionedXcm::<T::Call>::decode(&mut remaining_fragments) {
378+
if let Ok(xcm) = VersionedXcm::<T::Call>::decode_and_advance_with_depth_limit(
379+
MAX_XCM_DECODE_DEPTH,
380+
&mut remaining_fragments,
381+
) {
375382
let weight = max_weight - weight_used;
376383
match Self::handle_xcm_message(sender, sent_at, xcm, weight) {
377384
Ok(used) => weight_used = weight_used.saturating_add(used),
@@ -394,7 +401,7 @@ impl<T: Config> Pallet<T> {
394401
XcmpMessageFormat::ConcatenatedEncodedBlob => {
395402
while !remaining_fragments.is_empty() {
396403
last_remaining_fragments = remaining_fragments;
397-
if let Ok(blob) = <Vec<u8>>::decode(&mut remaining_fragments) {
404+
if let Ok(blob) = <Vec<u8>>::decode_all(&mut remaining_fragments) {
398405
let weight = max_weight - weight_used;
399406
match Self::handle_blob_message(sender, sent_at, blob, weight) {
400407
Ok(used) => weight_used = weight_used.saturating_add(used),
@@ -588,7 +595,10 @@ impl<T: Config> XcmpMessageHandler for Pallet<T> {
588595
for (sender, sent_at, data) in iter {
589596
// Figure out the message format.
590597
let mut data_ref = data;
591-
let format = match XcmpMessageFormat::decode(&mut data_ref) {
598+
let format = match XcmpMessageFormat::decode_and_advance_with_depth_limit(
599+
MAX_XCM_DECODE_DEPTH,
600+
&mut data_ref,
601+
) {
592602
Ok(f) => f,
593603
Err(_) => {
594604
debug_assert!(false, "Unknown XCMP message format. Silently dropping message");

polkadot-parachains/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ path = "src/main.rs"
1212
[dependencies]
1313
futures = { version = "0.3.1", features = ["compat"] }
1414
log = "0.4.8"
15-
codec = { package = "parity-scale-codec", version = "2.0.0" }
15+
codec = { package = "parity-scale-codec", version = "2.3.0" }
1616
structopt = "0.3.3"
1717
serde = { version = "1.0.101", features = ["derive"] }
1818
hex-literal = "0.2.1"

polkadot-parachains/pallets/parachain-info/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ name = "parachain-info"
55
version = "0.1.0"
66

77
[dependencies]
8-
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false, features = ["derive"] }
8+
codec = { package = "parity-scale-codec", version = "2.3.0", default-features = false, features = ["derive"] }
99
scale-info = { version = "1.0.0", default-features = false, features = ["derive"] }
1010
serde = { version = "1.0.101", optional = true, features = ["derive"] }
1111

polkadot-parachains/pallets/ping/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ name = "cumulus-ping"
55
version = "0.1.0"
66

77
[dependencies]
8-
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false, features = ["derive"] }
8+
codec = { package = "parity-scale-codec", version = "2.3.0", default-features = false, features = ["derive"] }
99
scale-info = { version = "1.0.0", default-features = false, features = ["derive"] }
1010
serde = { version = "1.0.101", optional = true, features = ["derive"] }
1111

polkadot-parachains/parachains-common/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ targets = ['x86_64-unknown-linux-gnu']
1010

1111
[dependencies]
1212
# External dependencies
13-
codec = { package = 'parity-scale-codec', version = '2.0.0', features = ['derive'], default-features = false }
13+
codec = { package = 'parity-scale-codec', version = '2.3.0', features = ['derive'], default-features = false }
1414
scale-info = { version = "1.0.0", default-features = false, features = ["derive"] }
1515

1616
# Substrate dependencies

polkadot-parachains/rococo/Cargo.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ edition = '2018'
66
description = "Simple runtime used by the rococo parachain(s)"
77

88
[dependencies]
9-
serde = { version = "1.0.101", optional = true, features = ["derive"] }
10-
scale-info = { version = "1.0.0", default-features = false, features = ["derive"] }
11-
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false, features = ["derive"] }
9+
codec = { package = "parity-scale-codec", version = "2.3.0", default-features = false, features = ["derive"] }
1210
log = { version = "0.4.14", default-features = false }
1311
parachain-info = { path = "../pallets/parachain-info", default-features = false }
12+
scale-info = { version = "1.0.0", default-features = false, features = ["derive"] }
13+
serde = { version = "1.0.101", optional = true, features = ["derive"] }
1414

1515
# Substrate dependencies
1616
sp-std = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" }

polkadot-parachains/shell/Cargo.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ authors = ["Parity Technologies <admin@parity.io>"]
55
edition = '2018'
66

77
[dependencies]
8-
serde = { version = "1.0.101", optional = true, features = ["derive"] }
9-
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false, features = ["derive"] }
10-
scale-info = { version = "1.0.0", default-features = false, features = ["derive"] }
8+
codec = { package = "parity-scale-codec", version = "2.3.0", default-features = false, features = ["derive"] }
119
log = { version = "0.4.14", default-features = false }
1210
parachain-info = { path = "../pallets/parachain-info", default-features = false }
11+
scale-info = { version = "1.0.0", default-features = false, features = ["derive"] }
12+
serde = { version = "1.0.101", optional = true, features = ["derive"] }
1313

1414
# Substrate dependencies
1515
sp-std = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" }

polkadot-parachains/statemine/Cargo.toml

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ edition = '2018'
66
description = "Kusama variant of Statemint parachain runtime"
77

88
[dependencies]
9-
serde = { version = "1.0.101", optional = true, features = ["derive"] }
10-
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false, features = ["derive", "max-encoded-len"] }
11-
scale-info = { version = "1.0.0", default-features = false, features = ["derive"] }
9+
codec = { package = "parity-scale-codec", version = "2.3.0", default-features = false, features = ["derive", "max-encoded-len"] }
10+
hex-literal = { version = '0.3.1', optional = true }
1211
log = { version = "0.4.14", default-features = false }
1312
parachain-info = { path = "../pallets/parachain-info", default-features = false }
13+
scale-info = { version = "1.0.0", default-features = false, features = ["derive"] }
14+
serde = { version = "1.0.101", optional = true, features = ["derive"] }
1415
smallvec = "1.6.1"
15-
hex-literal = { version = '0.3.1', optional = true }
1616

1717
# Substrate dependencies
1818
sp-std = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" }

polkadot-parachains/statemint/Cargo.toml

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ edition = '2018'
66
description = "Statemint parachain runtime"
77

88
[dependencies]
9-
serde = { version = "1.0.101", optional = true, features = ["derive"] }
10-
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false, features = ["derive", "max-encoded-len"] }
11-
scale-info = { version = "1.0.0", default-features = false, features = ["derive"] }
9+
codec = { package = "parity-scale-codec", version = "2.3.0", default-features = false, features = ["derive", "max-encoded-len"] }
10+
hex-literal = { version = '0.3.1', optional = true }
1211
log = { version = "0.4.14", default-features = false }
1312
parachain-info = { path = "../pallets/parachain-info", default-features = false }
13+
serde = { version = "1.0.101", optional = true, features = ["derive"] }
14+
scale-info = { version = "1.0.0", default-features = false, features = ["derive"] }
1415
smallvec = "1.6.1"
15-
hex-literal = { version = '0.3.1', optional = true }
1616

1717
# Substrate dependencies
1818
sp-std = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" }

polkadot-parachains/westmint/Cargo.toml

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ edition = '2018'
66
description = "Westend variant of Statemint parachain runtime"
77

88
[dependencies]
9-
serde = { version = "1.0.101", optional = true, features = ["derive"] }
10-
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false, features = ["derive", "max-encoded-len"] }
11-
scale-info = { version = "1.0.0", default-features = false, features = ["derive"] }
9+
codec = { package = "parity-scale-codec", version = "2.3.0", default-features = false, features = ["derive", "max-encoded-len"] }
10+
hex-literal = { version = '0.3.1', optional = true }
1211
log = { version = "0.4.14", default-features = false }
1312
parachain-info = { path = "../pallets/parachain-info", default-features = false }
13+
scale-info = { version = "1.0.0", default-features = false, features = ["derive"] }
14+
serde = { version = "1.0.101", optional = true, features = ["derive"] }
1415
smallvec = "1.6.1"
15-
hex-literal = { version = '0.3.1', optional = true }
1616

1717
# Substrate dependencies
1818
sp-std = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" }

primitives/core/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ polkadot-core-primitives = { git = "https://github.com/paritytech/polkadot", def
1919

2020
# Other dependencies
2121
impl-trait-for-tuples = "0.2.1"
22-
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false, features = [ "derive" ] }
22+
codec = { package = "parity-scale-codec", version = "2.3.0", default-features = false, features = [ "derive" ] }
2323

2424
[features]
2525
default = [ "std" ]

0 commit comments

Comments
 (0)