Unverified Commit d333da45 authored by Robin Freyler's avatar Robin Freyler Committed by GitHub
Browse files

Fix issues with ink! 3.0-rc6 examples (#968)



* normalize scale-info version usage in examples

* fix version usage in multisig example contract to ink! 3.0-rc6

* normalize Cargo.toml of rand-extension example

* add missing RELEASE notes to ink! 3.0-rc6

* Update RELEASES.md
Co-authored-by: Michael Müller's avatarMichael Müller <michi@parity.io>

* Update RELEASES.md
Co-authored-by: Michael Müller's avatarMichael Müller <michi@parity.io>
Co-authored-by: Michael Müller's avatarMichael Müller <michi@parity.io>
parent 8a745ffa
Pipeline #162787 failed with stages
in 4 minutes and 3 seconds
......@@ -4,6 +4,10 @@ This is the 6th release candidate for ink! 3.0.
## Added
- Added an Ethereum-compatibility function to recover a public key from an ECDSA signature and message hash - [#914](https://github.com/paritytech/ink/pull/914) (thanks [@xgreenx](https://github.com/xgreenx)).
- Added new utility proc. macros to `ink_lang` crate - [#947](https://github.com/paritytech/ink/pull/947):
- `blake2!`: Compute the BLAKE2b 256-bit hash of the given input literal string.
- `selector_bytes!`: Compute the ink! selector of the given input literal string and return it as `[u8; 4]`.
- `selector_id!`: Compute the ink! selector of the given input literal string and return it as `u32`.
## Changed
- Update to `scale-info` 1.0 - [#845](https://github.com/paritytech/ink/pull/845).
......
......@@ -12,7 +12,7 @@ ink_storage = { version = "3.0.0-rc6", path = "../../crates/storage", default-fe
ink_lang = { version = "3.0.0-rc6", path = "../../crates/lang", default-features = false }
scale = { package = "parity-scale-codec", version = "2", default-features = false, features = ["derive"] }
scale-info = { version = "1.0", default-features = false, features = ["derive"], optional = true }
scale-info = { version = "1", default-features = false, features = ["derive"], optional = true }
[lib]
name = "contract_terminate"
......
......@@ -13,7 +13,7 @@ ink_lang = { version = "3.0.0-rc6", path = "../../crates/lang", default-features
ink_prelude = { version = "3.0.0-rc6", path = "../../crates/prelude", default-features = false }
scale = { package = "parity-scale-codec", version = "2", default-features = false, features = ["derive"] }
scale-info = { version = "1.0", default-features = false, features = ["derive"], optional = true }
scale-info = { version = "1", default-features = false, features = ["derive"], optional = true }
[lib]
name = "contract_transfer"
......
......@@ -16,7 +16,7 @@ scale = { package = "parity-scale-codec", version = "2", default-features = fals
adder = { version = "3.0.0-rc6", path = "adder", default-features = false, features = ["ink-as-dependency"] }
subber = { version = "3.0.0-rc6", path = "subber", default-features = false, features = ["ink-as-dependency"] }
accumulator = { version = "3.0.0-rc6", path = "accumulator", default-features = false, features = ["ink-as-dependency"] }
scale-info = { version = "1.0", default-features = false, features = ["derive"], optional = true }
scale-info = { version = "1", default-features = false, features = ["derive"], optional = true }
[lib]
name = "delegator"
......
......@@ -12,7 +12,7 @@ ink_storage = { version = "3.0.0-rc6", path = "../../../crates/storage", default
ink_lang = { version = "3.0.0-rc6", path = "../../../crates/lang", default-features = false }
scale = { package = "parity-scale-codec", version = "2", default-features = false, features = ["derive"] }
scale-info = { version = "1.0", default-features = false, features = ["derive"], optional = true }
scale-info = { version = "1", default-features = false, features = ["derive"], optional = true }
[lib]
name = "accumulator"
......
......@@ -14,7 +14,7 @@ ink_lang = { version = "3.0.0-rc6", path = "../../../crates/lang", default-featu
accumulator = { version = "3.0.0-rc6", path = "../accumulator", default-features = false, features = ["ink-as-dependency"] }
scale = { package = "parity-scale-codec", version = "2", default-features = false, features = ["derive"] }
scale-info = { version = "1.0", default-features = false, features = ["derive"], optional = true }
scale-info = { version = "1", default-features = false, features = ["derive"], optional = true }
[lib]
name = "adder"
......
......@@ -14,7 +14,7 @@ ink_lang = { version = "3.0.0-rc6", path = "../../../crates/lang", default-featu
accumulator = { version = "3.0.0-rc6", path = "../accumulator", default-features = false, features = ["ink-as-dependency"] }
scale = { package = "parity-scale-codec", version = "2", default-features = false, features = ["derive"] }
scale-info = { version = "1.0", default-features = false, features = ["derive"], optional = true }
scale-info = { version = "1", default-features = false, features = ["derive"], optional = true }
[lib]
name = "subber"
......
......@@ -12,7 +12,7 @@ ink_storage = { version = "3.0.0-rc6", path = "../../crates/storage", default-fe
ink_lang = { version = "3.0.0-rc6", path = "../../crates/lang", default-features = false }
scale = { package = "parity-scale-codec", version = "2", default-features = false, features = ["derive"] }
scale-info = { version = "1.0", default-features = false, features = ["derive"], optional = true }
scale-info = { version = "1", default-features = false, features = ["derive"], optional = true }
[lib]
name = "dns"
......
......@@ -13,7 +13,7 @@ ink_lang = { version = "3.0.0-rc6", path = "../../crates/lang", default-features
ink_prelude = { version = "3.0.0-rc6", path = "../../crates/prelude", default-features = false }
scale = { package = "parity-scale-codec", version = "2", default-features = false, features = ["derive"] }
scale-info = { version = "1.0", default-features = false, features = ["derive"], optional = true }
scale-info = { version = "1", default-features = false, features = ["derive"], optional = true }
[lib]
name = "erc1155"
......
......@@ -12,7 +12,7 @@ ink_storage = { version = "3.0.0-rc6", path = "../../crates/storage", default-fe
ink_lang = { version = "3.0.0-rc6", path = "../../crates/lang", default-features = false }
scale = { package = "parity-scale-codec", version = "2", default-features = false, features = ["derive"] }
scale-info = { version = "1.0", default-features = false, features = ["derive"], optional = true }
scale-info = { version = "1", default-features = false, features = ["derive"], optional = true }
[lib]
name = "erc20"
......
......@@ -12,7 +12,7 @@ ink_storage = { version = "3.0.0-rc6", path = "../../crates/storage", default-fe
ink_lang = { version = "3.0.0-rc6", path = "../../crates/lang", default-features = false }
scale = { package = "parity-scale-codec", version = "2", default-features = false, features = ["derive"] }
scale-info = { version = "1.0", default-features = false, features = ["derive"], optional = true }
scale-info = { version = "1", default-features = false, features = ["derive"], optional = true }
[lib]
name = "erc721"
......
......@@ -12,7 +12,7 @@ ink_storage = { version = "3.0.0-rc6", path = "../../crates/storage", default-fe
ink_lang = { version = "3.0.0-rc6", path = "../../crates/lang", default-features = false }
scale = { package = "parity-scale-codec", version = "2", default-features = false, features = ["derive"] }
scale-info = { version = "1.0", default-features = false, features = ["derive"], optional = true }
scale-info = { version = "1", default-features = false, features = ["derive"], optional = true }
[lib]
name = "flipper"
......
......@@ -12,7 +12,7 @@ ink_storage = { version = "3.0.0-rc6", path = "../../crates/storage", default-fe
ink_lang = { version = "3.0.0-rc6", path = "../../crates/lang", default-features = false }
scale = { package = "parity-scale-codec", version = "2", default-features = false, features = ["derive"] }
scale-info = { version = "1.0", default-features = false, features = ["derive"], optional = true }
scale-info = { version = "1", default-features = false, features = ["derive"], optional = true }
[lib]
name = "incrementer"
......
......@@ -5,15 +5,15 @@ authors = ["Parity Technologies <admin@parity.io>"]
edition = "2018"
[dependencies]
ink_primitives = { version = "3.0.0-rc5", path = "../../crates/primitives", default-features = false }
ink_metadata = { version = "3.0.0-rc5", path = "../../crates/metadata", default-features = false, features = ["derive"], optional = true }
ink_env = { version = "3.0.0-rc5", path = "../../crates/env", default-features = false }
ink_storage = { version = "3.0.0-rc5", path = "../../crates/storage", default-features = false }
ink_lang = { version = "3.0.0-rc5", path = "../../crates/lang", default-features = false }
ink_prelude = { version = "3.0.0-rc5", path = "../../crates/prelude", default-features = false }
ink_primitives = { version = "3.0.0-rc6", path = "../../crates/primitives", default-features = false }
ink_metadata = { version = "3.0.0-rc6", path = "../../crates/metadata", default-features = false, features = ["derive"], optional = true }
ink_env = { version = "3.0.0-rc6", path = "../../crates/env", default-features = false }
ink_storage = { version = "3.0.0-rc6", path = "../../crates/storage", default-features = false }
ink_lang = { version = "3.0.0-rc6", path = "../../crates/lang", default-features = false }
ink_prelude = { version = "3.0.0-rc6", path = "../../crates/prelude", default-features = false }
scale = { package = "parity-scale-codec", version = "2", default-features = false, features = ["derive"] }
scale-info = { version = "1.0", default-features = false, features = ["derive"], optional = true }
scale-info = { version = "1", default-features = false, features = ["derive"], optional = true }
[lib]
name = "multisig"
......
[package]
name = "rand_extension"
version = "0.1.0"
authors = ["Hammewang <maggiedong@parity.io>"]
version = "3.0.0-rc6"
authors = ["Parity Technologies <admin@parity.io>"]
edition = "2018"
[dependencies]
ink_primitives = { path = "../../crates/primitives", default-features = false }
ink_metadata = { path = "../../crates/metadata", default-features = false, features = ["derive"], optional = true }
ink_env = { path = "../../crates/env", default-features = false }
ink_storage = { path = "../../crates/storage", default-features = false }
ink_lang = { path = "../../crates/lang", default-features = false }
ink_primitives = { version = "3.0.0-rc6", path = "../../crates/primitives", default-features = false }
ink_metadata = { version = "3.0.0-rc6", path = "../../crates/metadata", default-features = false, features = ["derive"], optional = true }
ink_env = { version = "3.0.0-rc6", path = "../../crates/env", default-features = false }
ink_storage = { version = "3.0.0-rc6", path = "../../crates/storage", default-features = false }
ink_lang = { version = "3.0.0-rc6", path = "../../crates/lang", default-features = false }
scale = { package = "parity-scale-codec", version = "2", default-features = false, features = ["derive"] }
scale-info = { version = "1.0", default-features = false, features = ["derive"], optional = true }
scale-info = { version = "1", default-features = false, features = ["derive"], optional = true }
[lib]
name = "rand_extension"
path = "lib.rs"
crate-type = [
# Used for normal contract Wasm blobs.
"cdylib",
]
crate-type = ["cdylib"]
[features]
default = ["std"]
......
......@@ -12,7 +12,7 @@ ink_storage = { version = "3.0.0-rc6", path = "../../crates/storage", default-fe
ink_lang = { version = "3.0.0-rc6", path = "../../crates/lang", default-features = false }
scale = { package = "parity-scale-codec", version = "2", default-features = false, features = ["derive"] }
scale-info = { version = "1.0", default-features = false, features = ["derive"], optional = true }
scale-info = { version = "1", default-features = false, features = ["derive"], optional = true }
[lib]
name = "trait_erc20"
......
......@@ -12,7 +12,7 @@ ink_storage = { version = "3.0.0-rc6", path = "../../crates/storage", default-fe
ink_lang = { version = "3.0.0-rc6", path = "../../crates/lang", default-features = false }
scale = { package = "parity-scale-codec", version = "2", default-features = false, features = ["derive"] }
scale-info = { version = "1.0", default-features = false, features = ["derive"], optional = true }
scale-info = { version = "1", default-features = false, features = ["derive"], optional = true }
[lib]
name = "trait_flipper"
......
......@@ -12,7 +12,7 @@ ink_storage = { version = "3.0.0-rc6", path = "../../crates/storage", default-fe
ink_lang = { version = "3.0.0-rc6", path = "../../crates/lang", default-features = false }
scale = { package = "parity-scale-codec", version = "2", default-features = false, features = ["derive"] }
scale-info = { version = "1.0", default-features = false, features = ["derive"], optional = true }
scale-info = { version = "1", default-features = false, features = ["derive"], optional = true }
[lib]
name = "trait_incrementer"
......
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