Skip to content

Commit

Permalink
fix header typing
Browse files Browse the repository at this point in the history
  • Loading branch information
acolytec3 committed Aug 9, 2024
1 parent 54114e7 commit dd58b43
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/evm/src/interpreter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion packages/evm/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

/**
Expand Down

0 comments on commit dd58b43

Please sign in to comment.