Skip to content

Commit

Permalink
chore(test-utils): rename transaction client method
Browse files Browse the repository at this point in the history
  • Loading branch information
snormore committed Oct 4, 2024
1 parent b684bc7 commit 33488bb
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions core/test-utils/src/e2e/node_app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ use lightning_utils::transaction::{TransactionClient, TransactionClientError, Tr
use super::{TestNode, TestNodeComponents};

impl TestNode {
pub async fn app_client(
pub async fn transaction_client(
&self,
signer: TransactionSigner,
) -> TransactionClient<TestNodeComponents> {
Expand Down Expand Up @@ -118,7 +118,7 @@ impl TestNode {
account: &AccountOwnerSecretKey,
) -> Result<(), TransactionClientError> {
let client = self
.app_client(TransactionSigner::AccountOwner(account.clone()))
.transaction_client(TransactionSigner::AccountOwner(account.clone()))
.await;
// Deposit FLK tokens.
client
Expand Down Expand Up @@ -151,7 +151,7 @@ impl TestNode {
account: &AccountOwnerSecretKey,
) -> Result<(), TransactionClientError> {
let client = self
.app_client(TransactionSigner::AccountOwner(account.clone()))
.transaction_client(TransactionSigner::AccountOwner(account.clone()))
.await;

client
Expand All @@ -170,7 +170,7 @@ impl TestNode {
account: &AccountOwnerSecretKey,
) -> Result<(), TransactionClientError> {
let client = self
.app_client(TransactionSigner::AccountOwner(account.clone()))
.transaction_client(TransactionSigner::AccountOwner(account.clone()))
.await;

client
Expand All @@ -187,15 +187,15 @@ impl TestNode {
&self,
method: UpdateMethod,
) -> Result<(TransactionRequest, TransactionReceipt), TransactionClientError> {
let client = self.app_client(self.get_node_signer()).await;
let client = self.transaction_client(self.get_node_signer()).await;
client.execute_transaction(method).await
}

pub async fn execute_transaction_from_owner(
&self,
method: UpdateMethod,
) -> Result<(TransactionRequest, TransactionReceipt), TransactionClientError> {
let client = self.app_client(self.get_owner_signer()).await;
let client = self.transaction_client(self.get_owner_signer()).await;
client.execute_transaction(method).await
}
}

0 comments on commit 33488bb

Please sign in to comment.