mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-19 00:41:03 +00:00
Upgrade codec to 2.0 and bitvec to 0.20 (companion) (#2343)
* upgrade codec and bitvec * "Update Substrate" Co-authored-by: parity-processbot <>
This commit is contained in:
committed by
GitHub
parent
6efeb1ee13
commit
29f12f3f48
@@ -5,6 +5,6 @@ authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
parity-scale-codec = { version = "1.3.6", default-features = false, features = ["derive"] }
|
||||
parity-scale-codec = { version = "2.0.0", default-features = false, features = ["derive"] }
|
||||
sp-core = { git = "https://github.com/paritytech/substrate", branch = "master" }
|
||||
primitives = { package = "polkadot-primitives", path = "../primitives" }
|
||||
|
||||
@@ -65,13 +65,13 @@ pub enum Statement<Candidate, Digest> {
|
||||
/// Broadcast by an authority to indicate that this is its candidate for inclusion.
|
||||
///
|
||||
/// Broadcasting two different candidate messages per round is not allowed.
|
||||
#[codec(index = "1")]
|
||||
#[codec(index = 1)]
|
||||
Candidate(Candidate),
|
||||
/// Broadcast by a authority to attest that the candidate with given digest is valid.
|
||||
#[codec(index = "2")]
|
||||
#[codec(index = 2)]
|
||||
Valid(Digest),
|
||||
/// Broadcast by a authority to attest that the candidate with given digest is invalid.
|
||||
#[codec(index = "3")]
|
||||
#[codec(index = 3)]
|
||||
Invalid(Digest),
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user