Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Commit 87cdedc

Browse files
authored
fix: ensure clique-signer for PoA networks (#4465)
1 parent a40a813 commit 87cdedc

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/chains/ethereum/block/src/runtime-block.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ export class RuntimeBlock {
9696
prevRandao: Buffer;
9797
baseFeePerGas?: bigint; // added in london
9898
withdrawalsRoot?: Buffer; // added in shanghai
99+
cliqueSigner: () => Address;
99100
};
100101

101102
constructor(
@@ -113,10 +114,9 @@ export class RuntimeBlock {
113114
withdrawalsRoot?: Buffer
114115
) {
115116
this._common = common;
116-
const coinbaseBuffer = coinbase.toBuffer();
117117
this.header = {
118118
parentHash: parentHash.toBuffer(),
119-
coinbase: new Address(coinbaseBuffer),
119+
coinbase: coinbase,
120120
number: number.toBigInt(),
121121
difficulty: difficulty.toBigInt(),
122122
totalDifficulty: Quantity.toBuffer(
@@ -128,7 +128,9 @@ export class RuntimeBlock {
128128
baseFeePerGas,
129129
mixHash,
130130
prevRandao: mixHash,
131-
withdrawalsRoot
131+
withdrawalsRoot,
132+
// fixes https://github.com/trufflesuite/ganache/issues/4359
133+
cliqueSigner: () => coinbase
132134
};
133135
}
134136

0 commit comments

Comments
 (0)