From 2e0a7a81ef3d4886457e93a10de0bf2f924f6202 Mon Sep 17 00:00:00 2001 From: JkLondon Date: Tue, 10 Sep 2024 14:54:30 +0400 Subject: [PATCH] commit --- core/vm/evm.go | 1 - turbo/jsonrpc/trace_adhoc.go | 8 -------- 2 files changed, 9 deletions(-) diff --git a/core/vm/evm.go b/core/vm/evm.go index 266f3bc80f0..4190b46613a 100644 --- a/core/vm/evm.go +++ b/core/vm/evm.go @@ -187,7 +187,6 @@ func (evm *EVM) call(typ OpCode, caller ContractRef, addr libcommon.Address, inp // Fail if we're trying to transfer more than the available balance if !value.IsZero() && !evm.Context.CanTransfer(evm.intraBlockState, caller.Address(), value) { if !bailout { - println("no balance") return nil, gas, ErrInsufficientBalance } } diff --git a/turbo/jsonrpc/trace_adhoc.go b/turbo/jsonrpc/trace_adhoc.go index 48f57b36711..5f35dd41d88 100644 --- a/turbo/jsonrpc/trace_adhoc.go +++ b/turbo/jsonrpc/trace_adhoc.go @@ -1289,8 +1289,6 @@ func (api *TraceAPIImpl) doCallMany(ctx context.Context, dbtx kv.Tx, msgs []type finalizeTxStateWriter = noop } - //ibs.Reset() - var txFinalized bool var execResult *evmtypes.ExecutionResult if args.isBorStateSyncTxn { @@ -1359,12 +1357,6 @@ func (api *TraceAPIImpl) doCallMany(ctx context.Context, dbtx kv.Tx, msgs []type } } - //chainRules := chainConfig.Rules(blockCtx.BlockNumber, blockCtx.Time) - - //if err = ibs.CommitBlock(chainRules, cachedWriter); err != nil { - // return nil, nil, err - //} - // ibs.Reset() return results, ibs, nil