Skip to content

Commit

Permalink
Fix URL in cw client
Browse files Browse the repository at this point in the history
  • Loading branch information
hu55a1n1 committed Oct 3, 2024
1 parent 727d695 commit 3c96959
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/transfers/enclave/src/wslistener.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ async fn transfer_handler<A: Attestor>(
ws_config: &WsListenerConfig,
) -> Result<()> {
let chain_id = &ChainId::from_str(&ws_config.chain_id)?;
let cw_client = GrpcClient::new(ws_config.sk_file.clone(), ws_config.node_url.clone());
let cw_client = GrpcClient::new(ws_config.sk_file.clone(), ws_config.grpc_url.clone());

// Query contract state
let resp: QueryResult<Vec<TransferRequest>> = cw_client
Expand Down Expand Up @@ -252,7 +252,7 @@ async fn transfer_handler<A: Attestor>(
2000000,
&ws_config.tx_sender,
json!(transfer_msg),
"1000untrn"
"1000untrn",
)
.await?;

Expand All @@ -268,7 +268,7 @@ async fn query_handler<A: Attestor>(
ws_config: &WsListenerConfig,
) -> Result<()> {
let chain_id = &ChainId::from_str(&ws_config.chain_id)?;
let cw_client = GrpcClient::new(ws_config.sk_file.clone(), ws_config.node_url.clone());
let cw_client = GrpcClient::new(ws_config.sk_file.clone(), ws_config.grpc_url.clone());

// Query contract state
let resp: QueryResult<HexBinary> = cw_client
Expand Down

0 comments on commit 3c96959

Please sign in to comment.