Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
374 changes: 0 additions & 374 deletions crates/contract/tests/sandbox/ckd.rs

This file was deleted.

15 changes: 13 additions & 2 deletions crates/contract/tests/sandbox/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,22 @@ use mpc_contract::{
update::{ProposeUpdateArgs, UpdateId},
};
use near_account_id::AccountId;
use near_workspaces::{network::Sandbox, Account, Contract, Worker};
use near_workspaces::{network::Sandbox, Contract};
use near_workspaces::{result::Execution, Account, Worker};
use rand_core::CryptoRngCore;
use serde_json::json;
use std::collections::BTreeSet;
use utilities::AccountIdExtV1;
use utilities::{AccountIdExtV1, AccountIdExtV2};

pub async fn create_account_given_id(
worker: &Worker<Sandbox>,
account_id: AccountId,
) -> Result<Execution<Account>, near_workspaces::error::Error> {
let (_, sk) = worker.generate_dev_account_credentials();
worker
.create_root_account_subaccount(account_id.as_v1_account_id(), sk)
.await
}

pub fn gen_participant_info() -> ParticipantInfo {
ParticipantInfo {
Expand Down
Loading