Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

monorepo: kzg casing #3677

Closed
wants to merge 8 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/evm/src/params.ts
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ export const paramsEVM: ParamsDict = {
kzgPointEvaluationPrecompileGas: 50000, // The fee associated with the point evaluation precompile
blobhashGas: 3, // Base fee of the BLOBHASH opcode
// sharding
blobCommitmentVersionKzg: 1, // The number indicated a versioned hash is a KZG commitment
blobCommitmentVersionKZG: 1, // The number indicated a versioned hash is a KZG commitment
fieldElementsPerBlob: 4096, // The number of field elements allowed per blob
},
/**
Expand Down
2 changes: 1 addition & 1 deletion packages/evm/src/precompiles/0a-kzg-point-evaluation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export async function precompile0a(opts: PrecompileInput): Promise<ExecResult> {
return EvmErrorResult(new EvmError(ERROR.INVALID_INPUT_LENGTH), opts.gasLimit)
}

const version = Number(opts.common.param('blobCommitmentVersionKzg'))
const version = Number(opts.common.param('blobCommitmentVersionKZG'))
const fieldElementsPerBlob = opts.common.param('fieldElementsPerBlob')
const versionedHash = bytesToHex(opts.data.subarray(0, 32))
const z = bytesToHex(opts.data.subarray(32, 64))
Expand Down
2 changes: 1 addition & 1 deletion packages/tx/src/params.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const paramsTx: ParamsDict = {
. * Shard Blob Transactions
. */
4844: {
blobCommitmentVersionKzg: 1, // The number indicated a versioned hash is a KZG commitment
blobCommitmentVersionKZG: 1, // The number indicated a versioned hash is a KZG commitment
},
/**
. * Set EOA account code for one transaction
Expand Down
Loading