Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge branch 'master' into hc-bump-substrate-deps
  • Loading branch information
HCastano committed Jan 27, 2023
commit b7799f5b0b3975f3663aab6cf87502214c43ed2c
2 changes: 1 addition & 1 deletion crates/e2e/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ ink = { version = "4.0.0-beta.1", path = "../ink" }
ink_env = { version = "4.0.0-beta.1", path = "../env" }
ink_primitives = { version = "4.0.0-beta.1", path = "../primitives" }

contract-metadata = { version = "2.0.0-beta.1" }
contract-metadata = { version = "2.0.0-rc" }
funty = "2.0.0"
impl-serde = { version = "0.3.1", default-features = false }
jsonrpsee = { version = "0.16.0", features = ["ws-client"] }
Expand Down
21 changes: 18 additions & 3 deletions crates/e2e/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ use contract_metadata::ContractMetadata;
use ink_env::Environment;
use ink_primitives::MessageResult;

use sp_core::Pair;
use std::{
collections::BTreeMap,
fmt::Debug,
Expand All @@ -40,12 +41,22 @@ use std::{
use subxt::{
blocks::ExtrinsicEvents,
config::ExtrinsicParams,
events::EventDetails,
ext::scale_value::{
Composite,
Value,
ValueDef,
},
metadata::DecodeStaticType,
storage::address::{
StorageHasher,
StorageMapKey,
Yes,
},
tx::{
PairSigner,
Signer as _,
},
};

/// Result of a contract instantiation.
Expand Down Expand Up @@ -337,11 +348,15 @@ where
) -> Signer<C>
where
E::Balance: Clone,
C::AccountId: Clone + core::fmt::Display,
C::AccountId: Clone + core::fmt::Display + core::fmt::Debug,
C::AccountId: From<sp_core::crypto::AccountId32>,
{
let (pair, _, _) = <sr25519::Pair as Pair>::generate_with_phrase(None);
let account_id =
<C::Signature as Verify>::Signer::from(pair.public()).into_account();
// let account_id =
// <C::Signature as Verify>::Signer::from(pair.public()).into_account();

let account_id: C::AccountId =
PairSigner::<C, _>::new(pair.clone()).account_id().clone();

for _ in 0..6 {
let transfer_result = self
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.