Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
manojkgorle committed Jun 20, 2024
1 parent 647932d commit 6847d7f
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions cmd/token-cli/cmd/spam.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ package cmd
import (
"context"
"crypto/rand"
"encoding/binary"

"github.com/ava-labs/avalanchego/ids"
"github.com/spf13/cobra"
Expand Down Expand Up @@ -124,13 +123,6 @@ var runLocalFeeMarketCmd = &cobra.Command{
}
chainID := []byte("nkit")
for i := 0; i < 10000; i++ {
price, e, err := cli.NameSpacePrice(ctx, string(chainID))
if err != nil {
return err
}
utils.Outf("{{yellow}}pre tx price:{{/}} %d\n", price)
utils.Outf("{{yellow}}pre tx err:{{/}} %s\n", e)
data = binary.BigEndian.AppendUint64(data, uint64(i))
_, err = sendAndWait(ctx, []chain.Action{&actions.SequencerMsg{
Data: data,
ChainId: chainID,
Expand All @@ -140,12 +132,11 @@ var runLocalFeeMarketCmd = &cobra.Command{
if err != nil {
return err
}
price, e, err = cli.NameSpacePrice(ctx, string(chainID))
price, err := cli.NameSpacePrice(ctx, string(chainID))
if err != nil {
return err
}
utils.Outf("{{yellow}}post tx price:{{/}} %d\n", price)
utils.Outf("{{yellow}}post tx err:{{/}} %s\n", e)
}
return nil
},
Expand Down

0 comments on commit 6847d7f

Please sign in to comment.