minor refactor

Co-authored-by: Delweng <delweng@gmail.com>
This commit is contained in:
Sina Mahmoodi 2023-07-28 14:01:56 +02:00 committed by GitHub
parent f9f377d64f
commit b7ff573886
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
}