Skip to content

Commit

Permalink
Merge pull request #4 from gotabit/add_ref_params
Browse files Browse the repository at this point in the history
feat(simple): Simple fix
  • Loading branch information
jacksoom authored Sep 25, 2023
2 parents 50cddfc + 5251ff0 commit b5600cd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
12 changes: 7 additions & 5 deletions grpc-client/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,10 @@ impl GrpcClient {

pub async fn broadcast_tx_sync<T>(
&mut self,
sign_key: SigningKey,
addr: String,
sign_key: &SigningKey,
addr: &String,
msg: T,
coin: Coin,
coin: &Coin,
memo: String,
timeout_height: u64,
gas: u64,
Expand All @@ -153,7 +153,9 @@ impl GrpcClient {
.clients
.cosmos
.auth
.account(QueryAccountRequest { address: addr })
.account(QueryAccountRequest {
address: addr.to_owned(),
})
.await?
.into_inner();
let base_acct: BaseAccount =
Expand Down Expand Up @@ -182,7 +184,7 @@ impl GrpcClient {
let auth_info = AuthInfo {
signer_infos: vec![signer_info],
fee: Some(Fee {
amount: vec![coin],
amount: vec![coin.clone()],
gas_limit: gas,
payer: Default::default(),
granter: Default::default(),
Expand Down
6 changes: 3 additions & 3 deletions grpc-client/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ async fn test_submit_tx() {

let resp = client
.broadcast_tx_sync(
sender_private_key,
sender_account_id.to_string(),
&sender_private_key,
&sender_account_id.to_string(),
msg_send,
coin,
&coin,
memo,
timeout_height,
gas,
Expand Down

0 comments on commit b5600cd

Please sign in to comment.