Skip to content

Commit

Permalink
more context's
Browse files Browse the repository at this point in the history
  • Loading branch information
boojamya committed Jan 23, 2024
1 parent 59e67f4 commit 5ec0776
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cosmos/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func (cc *CosmosProvider) QueryUsedNonce(ctx context.Context, sourceDomain types
Nonce: nonce,
}

_, err := qc.UsedNonce(context.Background(), params)
_, err := qc.UsedNonce(ctx, params)
if err != nil {
if err.Error() == "rpc error: code = NotFound desc = rpc error: code = NotFound desc = not found: key not found" {
return false, nil
Expand Down
2 changes: 1 addition & 1 deletion noble/chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ func (n *Noble) Broadcast(
return fmt.Errorf("failed to proto encode tx: %w", err)
}

rpcResponse, err := n.cc.RPCClient.BroadcastTxSync(context.Background(), txBytes)
rpcResponse, err := n.cc.RPCClient.BroadcastTxSync(ctx, txBytes)
if err != nil || (rpcResponse != nil && rpcResponse.Code != 0) {
// Log the error
logger.Error(fmt.Sprintf("error during broadcast: %s", getErrorString(err, rpcResponse)))
Expand Down

0 comments on commit 5ec0776

Please sign in to comment.