Skip to content
This repository was archived by the owner on Apr 4, 2023. It is now read-only.

Commit 44df9cc

Browse files
linting
1 parent 212c046 commit 44df9cc

File tree

5 files changed

+5
-10
lines changed

5 files changed

+5
-10
lines changed

chain/lifeline_tx_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ func TestLifelineTx(t *testing.T) {
5555
tc := &TransactionContext{
5656
Genesis: g,
5757
Database: db,
58-
BlockTime: uint64(tv.blockTime),
58+
BlockTime: tv.blockTime,
5959
TxID: ids.Empty,
6060
Sender: tv.sender,
6161
}

chain/transfer_tx.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ type TransferTx struct {
1818
}
1919

2020
func (t *TransferTx) Execute(c *TransactionContext) error {
21-
// Note this also prevents someone from transfering a prefix to themselves.
21+
// Note this also prevents someone from transferring a prefix to themselves.
2222
if t.To == c.Sender {
2323
return ErrNonActionable
2424
}
@@ -34,7 +34,7 @@ func (t *TransferTx) Execute(c *TransactionContext) error {
3434
}
3535
}
3636
// TODO: move prefix to tx model outside of base
37-
if len(t.Prefix()) > 0 {
37+
if len(t.Prefix()) > 0 { //nolint:nestif
3838
if err := parser.CheckPrefix(t.Prefix()); err != nil {
3939
return err
4040
}

chain/transfer_tx_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ func TestTransferTx(t *testing.T) {
133133
tc := &TransactionContext{
134134
Genesis: g,
135135
Database: db,
136-
BlockTime: uint64(tv.blockTime),
136+
BlockTime: tv.blockTime,
137137
TxID: ids.Empty,
138138
Sender: tv.sender,
139139
}

cmd/quarkcli/cmd/root.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ import (
99
"time"
1010

1111
"github.com/spf13/cobra"
12-
13-
"github.com/ava-labs/avalanchego/utils/crypto"
1412
)
1513

1614
const (
@@ -22,7 +20,6 @@ var (
2220
privateKeyFile string
2321
uri string
2422
workDir string
25-
f *crypto.FactorySECP256K1R
2623

2724
rootCmd = &cobra.Command{
2825
Use: "quark-cli",
@@ -37,7 +34,6 @@ func init() {
3734
panic(err)
3835
}
3936
workDir = p
40-
f = &crypto.FactorySECP256K1R{}
4137

4238
cobra.EnablePrefixMatching = true
4339
rootCmd.AddCommand(

tests/integration/integration_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import (
1010
"encoding/hex"
1111
"encoding/json"
1212
"flag"
13-
"math/rand"
1413
"net/http/httptest"
1514
"strings"
1615
"testing"
@@ -114,7 +113,7 @@ var _ = ginkgo.BeforeSuite(func() {
114113
if minBlockCost >= 0 {
115114
genesis.MinBlockCost = uint64(minBlockCost)
116115
}
117-
genesis.Magic = rand.Uint64()
116+
genesis.Magic = 5
118117
genesis.Allocations = []*chain.Allocation{
119118
{
120119
Address: sender.Hex(),

0 commit comments

Comments
 (0)