Skip to content

Commit

Permalink
Update main.go
Browse files Browse the repository at this point in the history
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
faddat and coderabbitai[bot] authored Oct 27, 2024
1 parent e0c2963 commit 82268b6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,8 @@ func TransferFunds(sender types.Account, receiverAddress string, amount sdkmath.
fmt.Println("FROM TRANSFER, txParams msgType", txParams.MsgType)
fmt.Println("FROM TRANSFER, txParams msgParams", txParams.MsgParams)

ctx := context.Background()
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
defer cancel()
resp, _, err := broadcast.SendTransactionViaGRPC(ctx, txParams, sequence, grpcClient)
if err != nil {
return fmt.Errorf("failed to send transaction: %v", err)
Expand Down

0 comments on commit 82268b6

Please sign in to comment.