fix lint issue

This commit is contained in:
Sina Mahmoodi 2024-03-13 12:45:22 +01:00 committed by Matthieu Vachon
parent d0a86c45b5
commit 77486e91fb
2 changed files with 3 additions and 3 deletions

View file

@ -545,6 +545,8 @@ func (evm *EVM) captureEnd(isRoot bool, typ OpCode, startGas uint64, leftOverGas
tracer.OnExit(ret, startGas-leftOverGas, VMErrorFromErr(err), reverted)
}
// GetVMContext provides context about the block being executed as well as state
// to the tracers.
func (evm *EVM) GetVMContext() *tracing.VMContext {
return &tracing.VMContext{
Coinbase: evm.Context.Coinbase,

View file

@ -183,9 +183,7 @@ func (l *StructLogger) OnOpcode(pc uint64, opcode byte, gas, cost uint64, scope
var stck []uint256.Int
if !l.cfg.DisableStack {
stck = make([]uint256.Int, len(stack))
for i, item := range stack {
stck[i] = item
}
copy(stck, stack)
}
contractAddr := scope.Address()
stackLen := len(stack)