Skip to content

Commit

Permalink
[ink_e2e] update subxt and substrate dependencies (#1649)
Browse files Browse the repository at this point in the history
* `[ink_e2e]` update `subxt` and substrate dependencies

* Use git ref for contract-build dependency

* Revert to crates.io contract-build

* Fix subxt::Config impl
ascjones authored Feb 15, 2023
1 parent 510dd3f commit cc14004
Showing 2 changed files with 7 additions and 8 deletions.
12 changes: 6 additions & 6 deletions crates/e2e/Cargo.toml
Original file line number Diff line number Diff line change
@@ -30,14 +30,14 @@ tokio = { version = "1.18.2", features = ["rt-multi-thread"] }
log = { version = "0.4" }
env_logger = { version = "0.10" }
scale = { package = "parity-scale-codec", version = "3", default-features = false, features = ["derive", "full"] }
subxt = "0.26.0"
subxt = "0.27.0"

# Substrate
pallet-contracts-primitives = "12.0.0"
sp-core = "11.0.0"
sp-keyring = "12.0.0"
sp-runtime = "12.0.0"
sp-weights = "8.0.0"
pallet-contracts-primitives = "18.0.0"
sp-core = "16.0.0"
sp-keyring = "18.0.0"
sp-runtime = "18.0.0"
sp-weights = "14.0.0"

[dev-dependencies]
# Required for the doctest of `MessageBuilder::call`
3 changes: 1 addition & 2 deletions crates/e2e/src/lib.rs
Original file line number Diff line number Diff line change
@@ -72,13 +72,12 @@ pub enum SubstrateConfig {}
#[cfg(feature = "std")]
impl subxt::Config for SubstrateConfig {
type Index = u32;
type BlockNumber = u32;
type Hash = sp_core::H256;
type Hasher = subxt::config::substrate::BlakeTwo256;
type AccountId = subxt::config::substrate::AccountId32;
type Address = sp_runtime::MultiAddress<Self::AccountId, u32>;
type Header = subxt::config::substrate::SubstrateHeader<
Self::BlockNumber,
u32,
subxt::config::substrate::BlakeTwo256,
>;
type Signature = sp_runtime::MultiSignature;

0 comments on commit cc14004

Please sign in to comment.