Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Jayashsatolia403 committed Sep 21, 2024
1 parent c5b5d43 commit d902ef2
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions cmd/bridge-mint-zcn.go
Original file line number Diff line number Diff line change
@@ -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() {
Expand Down Expand Up @@ -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)

Check failure on line 71 in cmd/bridge-mint-zcn.go

View workflow job for this annotation

GitHub Actions / Build-macos

not enough arguments in call to b.MintZCN

Check failure on line 71 in cmd/bridge-mint-zcn.go

View workflow job for this annotation

GitHub Actions / Build-linux

not enough arguments in call to b.MintZCN

Check failure on line 71 in cmd/bridge-mint-zcn.go

View workflow job for this annotation

GitHub Actions / unit-test

not enough arguments in call to b.MintZCN
if err != nil {
ExitWithError(err)
}
Expand Down

0 comments on commit d902ef2

Please sign in to comment.