mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-14 16:03:45 +00:00
fix lint issue
This commit is contained in:
parent
73ca96b97e
commit
65bdbc175f
2 changed files with 3 additions and 3 deletions
|
|
@ -545,6 +545,8 @@ func (evm *EVM) captureEnd(depth int, typ OpCode, startGas uint64, leftOverGas u
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// GetVMContext provides context about the block being executed as well as state
|
||||||
|
// to the tracers.
|
||||||
func (evm *EVM) GetVMContext() *tracing.VMContext {
|
func (evm *EVM) GetVMContext() *tracing.VMContext {
|
||||||
return &tracing.VMContext{
|
return &tracing.VMContext{
|
||||||
Coinbase: evm.Context.Coinbase,
|
Coinbase: evm.Context.Coinbase,
|
||||||
|
|
|
||||||
|
|
@ -184,9 +184,7 @@ func (l *StructLogger) OnOpcode(pc uint64, opcode byte, gas, cost uint64, scope
|
||||||
var stck []uint256.Int
|
var stck []uint256.Int
|
||||||
if !l.cfg.DisableStack {
|
if !l.cfg.DisableStack {
|
||||||
stck = make([]uint256.Int, len(stack))
|
stck = make([]uint256.Int, len(stack))
|
||||||
for i, item := range stack {
|
copy(stck, stack)
|
||||||
stck[i] = item
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
contractAddr := scope.Address()
|
contractAddr := scope.Address()
|
||||||
stackLen := len(stack)
|
stackLen := len(stack)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue