From b7ff5738866eb4ed03e049d64f33dd625df8a2ad Mon Sep 17 00:00:00 2001 From: Sina Mahmoodi <1591639+s1na@users.noreply.github.com> Date: Fri, 28 Jul 2023 14:01:56 +0200 Subject: [PATCH] minor refactor Co-authored-by: Delweng --- core/blockchain.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/blockchain.go b/core/blockchain.go index fbd86e636fb4..3ee20a9aa300 100644 --- a/core/blockchain.go +++ b/core/blockchain.go @@ -256,7 +256,7 @@ func NewBlockChain(db ethdb.Database, cacheConfig *CacheConfig, genesis *Genesis if vmConfig.Tracer != nil { l, ok := vmConfig.Tracer.(BlockchainLogger) if !ok { - return nil, fmt.Errorf("only extended tracers are supported for live mode") + return nil, errors.New("only extended tracers are supported for live mode") } logger = l }