You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run the example of L1 and L2 communication provided on the official website, the contracts are successfully deployed to both L1 and L2. However, when I call increment-counter.ts, yarn ts-node ./scripts/increment-counter.ts
I encounter errors of incorrect types.
When I set up my local private chain with Buse as L1, the following error occurs:
Error: invalid value for value.sealFields (Not an array!) (value={ "difficulty": "0x1", "extraData": "0xf90148a00000000000000000000000000000000000000000000000000000000000000000f854940ad4ca90ea2e6befadc49a9cb0f4f7d1045e73b4944a4ce383d932f8033d996e3c23b4dd605bcdb2dd946998aeb210210e4908af27da18eb0bae9a176ac9947c34ad2255cb746b59b19339a0e9bb1a97867b99808400000000f8c9b84166b3987f1c571fe58c1730a76b2174cec1c709c09454efda0e2db3aeca0aed06581c00c8e5750b6bb58e95858da4cf4df05dc1d49538e2b47255dc21247d1d9f00b841c1a9e65e4a9b0160ae1d108c33c3313f426b0818c58d87093475acebe2522483560ff19de794d0583d5807287ebfd095cd72a0e692a57fbe61fd9707515f903f01b841ff1dae6675037ef736cbbff15e3764513b74bc85a7cf0b3b76d63179880c9da97e56473739f05abf80df7e15ded8db20183442df7f11e5e1340d6016674405c300", "gasLimit": "0x47b760", "gasUsed": "0x0", "hash": "0xa05952ce75637bd87aebefd21ec4df0fc92543f92ceadc8cbf21e02a91e60d17", "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "miner": "0x7c34ad2255cb746b59b19339a0e9bb1a97867b99", "mixHash": "0x63746963616c2062797a616e74696e65206661756c7420746f6c6572616e6365", "nonce": "0x0000000000000000", "number": "0x2425", "parentHash": "0x399c1038ecd98909436bf7ebe37f773d226e99f5c158d59de477898f49163c01", "receiptsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", "sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347", "size": "0x34b", "stateRoot": "0xaea23e7deacd0256dacda29827b2103830f9366a69129cc6f7a01cc423b4bcf3", "timestamp": "0x66081bbe", "totalDifficulty": "0x2426", "transactions": [ ], "transactionsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", "uncles": [ ] }, code=BAD_DATA, version=6.11.1)
at makeError (/home/haerker/zksync/cross-chain-tutorial/L2-counter/node_modules/ethers/src.ts/utils/errors.ts:694:21)
at assert (/home/haerker/zksync/cross-chain-tutorial/L2-counter/node_modules/ethers/src.ts/utils/errors.ts:715:25)
at /home/haerker/zksync/cross-chain-tutorial/L2-counter/node_modules/zksync-ethers/src/format.ts:72:15
at formatBlock (/home/haerker/zksync/cross-chain-tutorial/L2-counter/node_modules/zksync-ethers/src/format.ts:174:18)
at Provider._wrapBlock (/home/haerker/zksync/cross-chain-tutorial/L2-counter/node_modules/zksync-ethers/src/provider.ts:110:35)
at getFeeDataFunc (/home/haerker/zksync/cross-chain-tutorial/L2-counter/node_modules/ethers/src.ts/providers/abstract-provider.ts:935:32)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Provider.getFeeData (/home/haerker/zksync/cross-chain-tutorial/L2-counter/node_modules/ethers/src.ts/providers/abstract-provider.ts:952:16)
at async Provider.getGasPrice (/home/haerker/zksync/cross-chain-tutorial/L2-counter/node_modules/zksync-ethers/src/provider.ts:302:23)
at async main (/home/haerker/zksync/cross-chain-tutorial/L2-counter/scripts/increment-counter.ts:39:20) {
code: 'BAD_DATA',
value: {
number: '0x2425',
hash: '0xa05952ce75637bd87aebefd21ec4df0fc92543f92ceadc8cbf21e02a91e60d17',
mixHash: '0x63746963616c2062797a616e74696e65206661756c7420746f6c6572616e6365',
parentHash: '0x399c1038ecd98909436bf7ebe37f773d226e99f5c158d59de477898f49163c01',
nonce: '0x0000000000000000',
sha3Uncles: '0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347',
logsBloom: '0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000',
transactionsRoot: '0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421',
stateRoot: '0xaea23e7deacd0256dacda29827b2103830f9366a69129cc6f7a01cc423b4bcf3',
receiptsRoot: '0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421',
miner: '0x7c34ad2255cb746b59b19339a0e9bb1a97867b99',
difficulty: '0x1',
totalDifficulty: '0x2426',
extraData: '0xf90148a00000000000000000000000000000000000000000000000000000000000000000f854940ad4ca90ea2e6befadc49a9cb0f4f7d1045e73b4944a4ce383d932f8033d996e3c23b4dd605bcdb2dd946998aeb210210e4908af27da18eb0bae9a176ac9947c34ad2255cb746b59b19339a0e9bb1a97867b99808400000000f8c9b84166b3987f1c571fe58c1730a76b2174cec1c709c09454efda0e2db3aeca0aed06581c00c8e5750b6bb58e95858da4cf4df05dc1d49538e2b47255dc21247d1d9f00b841c1a9e65e4a9b0160ae1d108c33c3313f426b0818c58d87093475acebe2522483560ff19de794d0583d5807287ebfd095cd72a0e692a57fbe61fd9707515f903f01b841ff1dae6675037ef736cbbff15e3764513b74bc85a7cf0b3b76d63179880c9da97e56473739f05abf80df7e15ded8db20183442df7f11e5e1340d6016674405c300',
size: '0x34b',
gasLimit: '0x47b760',
gasUsed: '0x0',
timestamp: '0x66081bbe',
uncles: [],
transactions: []
},
shortMessage: 'invalid value for value.sealFields (Not an array!)'
}
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
When my L1 is provided by sepolia on the official website, the following error occurs:
Homemade Blockchain: If your blockchain isn't the standard Ethereum kind, double-check that it has all the 'parts' that Ethereum expects (especially something called "sealFields").
Official Test Network: If you're using a standard setup like Sepolia, make sure your code is using the right settings for that particular network.
Software Issues:
Out-of-sync Tools: Make sure your 'ethers.js' library (and 'zksync-ethers') plays nicely with your blockchain setup. Look for newer versions that might work better.
Handle Unexpected Data: If you can edit your code, consider adding bits to deal with weird "sealFields", just in case that's the problem.
When I run the example of L1 and L2 communication provided on the official website, the contracts are successfully deployed to both L1 and L2. However, when I call increment-counter.ts,
yarn ts-node ./scripts/increment-counter.ts
I encounter errors of incorrect types.
When I set up my local private chain with Buse as L1, the following error occurs:
When my L1 is provided by sepolia on the official website, the following error occurs:
The text was updated successfully, but these errors were encountered: