Commit 033f312c authored by Hero Bird's avatar Hero Bird

[pdsl] Bump parity-codec version from 2.2 to 3.0

parent 3c2a4cf6
......@@ -18,7 +18,7 @@ categories = ["no-std", "embedded"]
include = ["/Cargo.toml", "src/**/*.rs", "/README.md", "/LICENSE"]
[dependencies]
parity-codec = { version = "2.2", default-features = false, features = ["derive", "full"] }
parity-codec = { version = "3.0", default-features = false, features = ["derive", "full"] }
tiny-keccak = "1.4"
log = "0.4"
wee_alloc = "0.4"
......
......@@ -24,8 +24,7 @@ quote = "0.6"
syn = { version = "0.15", features = ["parsing", "full", "extra-traits"] }
proc-macro2 = "0.4"
parity-codec = { version = "2.0" }
parity-codec-derive = { version = "2.0" }
parity-codec = { version = "3.0", default-features = false, features = ["derive"] }
[lib]
name = "pdsl"
......
......@@ -6,7 +6,7 @@ edition = "2018"
[dependencies]
pdsl_core = { path = "../../core" }
parity-codec = { version = "2.2", default-features = false, features = ["derive"] }
parity-codec = { version = "3.0", default-features = false, features = ["derive"] }
[lib]
name = "erc20_token"
......
......@@ -7,7 +7,7 @@ edition = "2018"
[dependencies]
pdsl_core = { path = "../../core" }
pdsl_model = { path = "../../model" }
parity-codec = { version = "2.2", default-features = false, features = ["derive"] }
parity-codec = { version = "3.0", default-features = false, features = ["derive"] }
[lib]
name = "fleet_inc"
......
......@@ -6,7 +6,7 @@ edition = "2018"
[dependencies]
pdsl_core = { path = "../../core" }
parity-codec = { version = "2.2", default-features = false, features = ["derive"] }
parity-codec = { version = "3.0", default-features = false, features = ["derive"] }
[lib]
name = "incrementer"
......
......@@ -6,7 +6,7 @@ edition = "2018"
[dependencies]
pdsl_core = { path = "../../core" }
parity-codec = { version = "2.2", default-features = false, features = ["derive"] }
parity-codec = { version = "3.0", default-features = false, features = ["derive"] }
[lib]
name = "noop"
......
......@@ -6,7 +6,7 @@ edition = "2018"
[dependencies]
pdsl_core = { path = "../../pdsl_core" }
parity-codec = { version = "2.2", default-features = false, features = ["derive", "full"] }
parity-codec = { version = "3.0", default-features = false, features = ["derive", "full"] }
lazy_static = { version = "1.2", features = ["spin_no_std"] }
spin = { version = "0.4", default-features = false }
......
......@@ -18,7 +18,7 @@ categories = ["no-std", "embedded"]
include = ["/Cargo.toml", "src/**/*.rs", "/README.md", "/LICENSE"]
[dependencies]
parity-codec = { version = "2.2", default-features = false, features = ["derive", "full"] }
parity-codec = { version = "3.0", default-features = false, features = ["derive", "full"] }
pdsl_core = { version = "0.1.0", path = "../core" }
either = { version = "1.5.0", default-features = false }
......
......@@ -24,7 +24,7 @@ messages! {
}
fn instantiate() -> impl Contract {
ContractDecl::new::<Adder>()
ContractDecl::using::<Adder>()
.on_deploy(|env, init_val| {
env.state.val.set(init_val)
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment