Skip to content

Commit

Permalink
typos
Browse files Browse the repository at this point in the history
  • Loading branch information
mihaicalinluca committed Nov 21, 2024
1 parent 04e59ef commit 445d7bc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,13 @@ where
.await
}

pub async fn set_state(&self, account: Vec<SetStateAccount>) -> Result<String, Error> {
pub async fn set_state(&self, accounts: Vec<SetStateAccount>) -> Result<String, Error> {
if !self.use_chain_simulator {
return Ok(String::from("no-simulator"));
}

self.proxy
.request(ChainSimulatorSetStateRequest::for_account(account))
.request(ChainSimulatorSetStateRequest::for_accounts(accounts))
.await
}
}
8 changes: 4 additions & 4 deletions sdk/core/src/gateway/gateway_chain_simulator_set_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,12 @@ impl SetStateAccount {

/// Sets state for a list of accounts using the chain simulator API.
pub struct ChainSimulatorSetStateRequest {
pub account: Vec<SetStateAccount>,
pub accounts: Vec<SetStateAccount>,
}

impl ChainSimulatorSetStateRequest {
pub fn for_account(account: Vec<SetStateAccount>) -> Self {
Self { account }
pub fn for_accounts(accounts: Vec<SetStateAccount>) -> Self {
Self { accounts }
}
}

Expand All @@ -74,7 +74,7 @@ impl GatewayRequest for ChainSimulatorSetStateRequest {
type Result = String;

fn get_payload(&self) -> Option<&Self::Payload> {
Some(&self.account)
Some(&self.accounts)
}

fn request_type(&self) -> GatewayRequestType {
Expand Down

0 comments on commit 445d7bc

Please sign in to comment.