diff --git a/packages/evm/src/interpreter.ts b/packages/evm/src/interpreter.ts index 30266d8b62..67226fca4f 100644 --- a/packages/evm/src/interpreter.ts +++ b/packages/evm/src/interpreter.ts @@ -790,7 +790,7 @@ export class Interpreter { getBlockCoinbase(): bigint { let coinbase: Address if (this.common.consensusAlgorithm() === ConsensusAlgorithm.Clique) { - coinbase = this._evm['_optsCached'].cliqueSigner!(this._env.block.header as any) + coinbase = this._evm['_optsCached'].cliqueSigner!(this._env.block.header) } else { coinbase = this._env.block.header.coinbase } diff --git a/packages/evm/src/types.ts b/packages/evm/src/types.ts index 9f899c641f..35b9e7f423 100644 --- a/packages/evm/src/types.ts +++ b/packages/evm/src/types.ts @@ -350,7 +350,7 @@ export interface EVMOpts { /** * Must be present if consensus type is clique/poa, else error will be thrown */ - cliqueSigner?: (header: any) => Address + cliqueSigner?: (header: Block['header']) => Address } /**