Skip to content

Commit

Permalink
add besu.config.contractSizeLimit = quorumConfig.maxCodeSize;
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuafernandes committed Sep 10, 2024
1 parent 0d8ff10 commit 61cfaf1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/lib/genesisGenerate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ export function createBesuGenesis(
besu.coinbase = quorumConfig.coinbase;
besu.difficulty = "0x" + quorumConfig.difficulty.toString(16);
besu.config.chainId = quorumConfig.chainID;
besu.config.contractSizeLimit = quorumConfig.maxCodeSize;
besu.config.zeroBaseFee = true;
const consensus = quorumConfig.consensus;
if (quorumConfig.curve === CryptoCurve.r1) {
Expand Down
2 changes: 1 addition & 1 deletion src/types/genesis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export type GenesisConfig = {
londonBlock: number;
zeroBaseFee?: boolean;
isQuorum?: boolean;
contractSizeLimit?: string;
contractSizeLimit?: number;
txnSizeLimit?: number;
maxCodeSizeConfig?: [CodeSize];
ibft2?: Algorithm;
Expand Down

0 comments on commit 61cfaf1

Please sign in to comment.