Skip to content

Commit

Permalink
test: Default pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
onsails committed Nov 13, 2023
1 parent 87a8e4c commit d514997
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion tests/grpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,22 @@ async fn test_grpc() -> Result<()> {

println!("{:?}", rsp);

// Cosmos Balance
// Cosmos Balance (default pattern)

let mut client = bank::query_client::QueryClient::connect(node_url).await?;

let rsp = client
.balance(bank::QueryBalanceRequest {
address: addr.clone(),
denom: "aISLM".to_string(),
..Default::default()
})
.await?;

println!("{:?}", rsp);

// Cosmos Balance (builder pattern)

let rsp = client
.balance(
bank::QueryBalanceRequestBuilder::default()
Expand Down

0 comments on commit d514997

Please sign in to comment.