Skip to content

Commit

Permalink
chore: add Worker::<Testnet>::root_account_id method
Browse files Browse the repository at this point in the history
  • Loading branch information
dj8yf0μl committed Dec 25, 2024
1 parent 2fc538d commit 1f11dea
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion workspaces/src/worker/impls.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use near_primitives::views::StatusResponse;

use crate::network::{Info, Sandbox};
use crate::network::{Info, Sandbox, Testnet};
use crate::network::{NetworkClient, NetworkInfo};
use crate::operations::{CallTransaction, Function};
use crate::result::{ExecutionFinalResult, Result};
Expand Down Expand Up @@ -284,6 +284,12 @@ where
}
}

impl Worker<Testnet> {
pub fn root_account_id(&self) -> AccountId {
self.workspace.info().root_id.clone()
}
}

impl Worker<Sandbox> {
pub fn root_account(&self) -> Result<Account> {
let signer = self.workspace.root_signer()?;
Expand Down

0 comments on commit 1f11dea

Please sign in to comment.