Skip to content

Commit

Permalink
eth/tracers: linter nits
Browse files Browse the repository at this point in the history
  • Loading branch information
holiman committed Nov 4, 2021
1 parent 2de2d6c commit a9b91d7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
7 changes: 5 additions & 2 deletions eth/tracers/testing/calltrace_test.go
Expand Up @@ -99,8 +99,11 @@ func testCallTracer(tracerName string, dirPath string, t *testing.T) {
var (
signer = types.MakeSigner(test.Genesis.Config, new(big.Int).SetUint64(uint64(test.Context.Number)))
origin, _ = signer.Sender(tx)
txContext = vm.TxContext{origin, tx.GasPrice()}
context = vm.BlockContext{
txContext = vm.TxContext{
Origin: origin,
GasPrice: tx.GasPrice(),
}
context = vm.BlockContext{
CanTransfer: core.CanTransfer,
Transfer: core.Transfer,
Coinbase: test.Context.Miner,
Expand Down
9 changes: 0 additions & 9 deletions eth/tracers/tracers_test.go
Expand Up @@ -26,7 +26,6 @@ import (

"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/common/hexutil"
"github.com/ethereum/go-ethereum/common/math"
"github.com/ethereum/go-ethereum/core"
"github.com/ethereum/go-ethereum/core/rawdb"
"github.com/ethereum/go-ethereum/core/types"
Expand Down Expand Up @@ -100,14 +99,6 @@ type callTrace struct {
Calls []callTrace `json:"calls,omitempty"`
}

type callContext struct {
Number math.HexOrDecimal64 `json:"number"`
Difficulty *math.HexOrDecimal256 `json:"difficulty"`
Time math.HexOrDecimal64 `json:"timestamp"`
GasLimit math.HexOrDecimal64 `json:"gasLimit"`
Miner common.Address `json:"miner"`
}

// TestZeroValueToNotExitCall tests the calltracer(s) on the following:
// Tx to A, A calls B with zero value. B does not already exist.
// Expected: that enter/exit is invoked and the inner call is shown in the result
Expand Down

0 comments on commit a9b91d7

Please sign in to comment.