This repository was archived by the owner on Apr 4, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +5
-10
lines changed Expand file tree Collapse file tree 5 files changed +5
-10
lines changed Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ type TransferTx struct {
1818}
1919
2020func (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 }
Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff line change 99 "time"
1010
1111 "github.com/spf13/cobra"
12-
13- "github.com/ava-labs/avalanchego/utils/crypto"
1412)
1513
1614const (
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 (
Original file line number Diff line number Diff 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 (),
You can’t perform that action at this time.
0 commit comments