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

L1 Beacon API fails "cannot unmarshal hex number with leading zero digits into Go struct field" #305

Open
ErrorEater opened this issue Jul 31, 2024 · 5 comments

Comments

@ErrorEater
Copy link

Here is the error output of base-node trying to connect to L1 Beacon node:
json: cannot unmarshal hex number with leading zero digits into Go struct field StorageProofEntry.storageProof.value of type *hexutil.Big

How to solve?

node-1       | t=2024-07-31T17:09:57+0000 lvl=info msg="Rollup Config" l2_chain_id=8453 l2_network=Base l1_chain_id=1 l1_network=mainnet l2_start_time=1686789347 l2_block_hash=0xf712aa9241cc24369b143cf6dce85f0902a9731e70d66818a3a5845b296c73dd l2_block_number=0 l1_block_hash=0x5c13d307623a926cd31415036c8b7fa14572f9dac64528e857a470511fc30771 l1_block_number=17481768 regolith_time="@ genesis" canyon_time="@ 1704992401 ~ Thu Jan 11 17:00:01 UTC 2024" delta_time="@ 1708560000 ~ Thu Feb 22 00:00:00 UTC 2024" ecotone_time="@ 1710374401 ~ Thu Mar 14 00:00:01 UTC 2024" fjord_time="@ 1720627201 ~ Wed Jul 10 16:00:01 UTC 2024" interop_time="(not configured)" plasma_mode=false
node-1       | t=2024-07-31T17:09:57+0000 lvl=info msg="Initializing rollup node" version=v1.7.7-f8143c8c-1717593043
node-1       | t=2024-07-31T17:09:57+0000 lvl=info msg="Connected to L1 Beacon API, ready for EIP-4844 blobs retrieval." version="Prysm/v5.0.4 (windows amd64)"
node-1       | t=2024-07-31T17:09:57+0000 lvl=error msg="failed to fetch runtime config data" err="required-protocol-version value failed to load from L1 contract: failed to fetch proof of storage slot 0x4aaefe95bd84fd3f32700cf3b7566bc944b73138e41958b5785826df2aecace0 at block 0x2ebf1718f743bb41b1b6efadf1443fb70fc311be0b85fbc56a9e5d1bb49c9848: json: cannot unmarshal hex number with leading zero digits into Go struct field StorageProofEntry.storageProof.value of type *hexutil.Big"
@SaulMoonves
Copy link

I'm experiencing this too, I'm dead in the water please help.

@roberto-bayardo
Copy link
Contributor

@SaulMoonves are you also using Prysm for your L1 beacon node? I wonder if there's an incompatibility that was recently introduced.

@SaulMoonves
Copy link

I am using Nethermind for my L1 execution and Nimbus for my beacon.

@roberto-bayardo
Copy link
Contributor

Oh hmm, I think the key error may be this one which doesn't seem beacon node related since L1 contract data should be getting fetched from the execution client not the beacon node. This is the same error you get @SaulMoonves ?

node-1 | t=2024-07-31T17:09:57+0000 lvl=error msg="failed to fetch runtime config data" err="required-protocol-version value failed to load from L1 contract: failed to fetch proof of storage slot 0x4aaefe95bd84fd3f32700cf3b7566bc944b73138e41958b5785826df2aecace0 at block 0x2ebf1718f743bb41b1b6efadf1443fb70fc311be0b85fbc56a9e5d1bb49c9848: json: cannot unmarshal hex number with leading zero digits into Go struct field StorageProofEntry.storageProof.value of type *hexutil.Big"

@SaulMoonves
Copy link

I do believe I saw that error.

I switched to a different docker-compose provided to me by a coworker and got up and syncing (it might be out of date though), so I don't have this configuration anymore but here is a snippet of what I am using now that works:

geth:
    image: ghcr.io/base-org/node-geth:v0.10.2

node:
    image: ghcr.io/base-org/node-geth:v0.10.2
    depends_on:
      - geth

If this is dangerously out of date or something I can snapshot the data dir and try switching again to test things out if it's helpful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants