Skip to content

Commit

Permalink
cmd/evm: lint nits
Browse files Browse the repository at this point in the history
  • Loading branch information
holiman committed Sep 8, 2021
1 parent 4e4d17c commit 62700e4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 25 deletions.
7 changes: 4 additions & 3 deletions cmd/evm/internal/t8ntool/transaction.go
Expand Up @@ -20,6 +20,10 @@ import (
"encoding/json"
"errors"
"fmt"
"math/big"
"os"
"strings"

"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/common/hexutil"
"github.com/ethereum/go-ethereum/core/types"
Expand All @@ -28,9 +32,6 @@ import (
"github.com/ethereum/go-ethereum/rlp"
"github.com/ethereum/go-ethereum/tests"
"gopkg.in/urfave/cli.v1"
"math/big"
"os"
"strings"
)

type result struct {
Expand Down
22 changes: 0 additions & 22 deletions cmd/evm/t8n_test.go
Expand Up @@ -290,25 +290,3 @@ func cmpJson(a, b []byte) (bool, error) {
}
return reflect.DeepEqual(j2, j), nil
}

//func TestFoo(t *testing.T){
// d, _ := rlp.EncodeToBytes(types.Header{
// ParentHash: common.Hash{},
// UncleHash: common.Hash{},
// Coinbase: common.Address{},
// Root: common.Hash{},
// TxHash: common.Hash{},
// ReceiptHash: common.Hash{},
// Bloom: types.Bloom{},
// Difficulty: big.NewInt(123),
// Number: big.NewInt(1),
// GasLimit: 1,
// GasUsed: 2,
// Time: 3,
// Extra: []byte{1,2,3},
// MixDigest: common.Hash{},
// Nonce: types.BlockNonce{},
// BaseFee: nil,
// })
// fmt.Printf("%x\n", d)
//}

0 comments on commit 62700e4

Please sign in to comment.