From d902ef272d2e50699cba152af425e5f0dada176c Mon Sep 17 00:00:00 2001 From: Jayash Satolia <73050737+Jayashsatolia403@users.noreply.github.com> Date: Sun, 22 Sep 2024 03:19:33 +0530 Subject: [PATCH] Fix --- cmd/bridge-mint-zcn.go | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/cmd/bridge-mint-zcn.go b/cmd/bridge-mint-zcn.go index 351d3b54..46c7e58d 100644 --- a/cmd/bridge-mint-zcn.go +++ b/cmd/bridge-mint-zcn.go @@ -1,14 +1,11 @@ package cmd import ( - "context" "encoding/json" "fmt" - "strconv" - "time" - "github.com/0chain/gosdk/zcnbridge" "github.com/0chain/gosdk/zcncore" + "strconv" ) func init() { @@ -69,12 +66,9 @@ func commandMintZCN(b *zcnbridge.BridgeClient, args ...*Arg) { fmt.Printf("Payload nonce: %d\n", payload.Nonce) fmt.Printf("Receiving ZCN ClientID: %s\n", payload.ReceivingClientID) - ctx, cancelFunc := context.WithTimeout(context.Background(), time.Second*20) - defer cancelFunc() - fmt.Println("Starting to mint ZCN") - txHash, err := b.MintZCN(ctx, payload) + txHash, err := b.MintZCN(payload) if err != nil { ExitWithError(err) }