Skip to content

Commit

Permalink
Client
Browse files Browse the repository at this point in the history
  • Loading branch information
leighmcculloch committed Sep 30, 2022
1 parent f8aa8fc commit 1c4b21a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/deploy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ use soroban_env_host::xdr::{
};
use soroban_env_host::HostError;

use crate::rpc::{self, Rpc};
use crate::rpc::{self, Client};
use crate::snapshot::{self, get_default_ledger_info};
use crate::utils;

Expand Down Expand Up @@ -138,7 +138,7 @@ impl Cmd {
}

async fn run_against_rpc_server(&self, contract: Vec<u8>) -> Result<(), Error> {
let client = Rpc::new(self.rpc_server_url.as_ref().unwrap());
let client = Client::new(self.rpc_server_url.as_ref().unwrap());
let key = utils::parse_private_key(self.private_strkey.as_ref().unwrap())
.map_err(|_| Error::CannotParsePrivateKey)?;

Expand Down
4 changes: 2 additions & 2 deletions src/rpc/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ pub struct TransactionStatusResponse {
// TODO: add results
}

pub struct Rpc {
pub struct Client {
base_url: String,
}

impl Rpc {
impl Client {
pub fn new(base_url: &str) -> Self {
Self {
base_url: base_url.to_string(),
Expand Down

0 comments on commit 1c4b21a

Please sign in to comment.