It should've always been a string of hex bytes, it just worked as a number by coincidence.
BigInt(block.timestamp),
block.extraData,
block.mixHash,
- BigInt(block.nonce)
+ block.nonce
];
// Avalanche Apricot Phase 1 (no specification)
// Paris hard fork
// https://eips.ethereum.org/EIPS/eip-3675#block-structure
- if (block.nonce === '0x0000000000000000') {
- header[14] = '0x0000000000000000'; // MUST be string and not a number
- }
+ // Hardcodes block.nonce to '0x0000000000000000'.
+ // No code change required, just FYI.
// Shapella hard fork
// https://eips.ethereum.org/EIPS/eip-4895#new-field-in-the-execution-payload-header-withdrawals-root
import { calculate } from './calculate.js';
suite('Ethereum', { concurrency: true }, () => {
- test('Block number 0', { skip: true, concurrency: true }, () => {
+ test('Block number 0', { concurrency: true }, () => {
const { hash } = calculate({
"difficulty": "0x400000000",
"extraData": "0x11bbe8db4e347b4e8c937c1c8370e4b5ed33adb3db69cbdb7a38e1e50b1b82fa",