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

Test through more epochs #256

Open
vimwitch opened this issue Dec 8, 2022 · 0 comments
Open

Test through more epochs #256

vimwitch opened this issue Dec 8, 2022 · 0 comments
Labels
test Test related issues

Comments

@vimwitch
Copy link
Member

vimwitch commented Dec 8, 2022

#254 was discovered after we wrote tests for bit shift logic. I think this bug came out when larger epochs were used. In the tests we should skip through epochs to test generating and decoding/verifying proofs in large epochs.

Related #244

Example failing call using an epoch key proof.

Error: cannot estimate gas; transaction may fail or may require manual gas limit [ See: https://links.ethers.org/v5-errors-UNPREDICTABLE_GAS_LIMIT ] (reason="Error: VM Exception while processing transaction: reverted with an unrecognized custom error", method="estimateGas", transaction={"from":"0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266","to":"0xD8a5a9b31c3C0232E196d518E89Fd8bF83AcAd43","data":"0xc62fb69900000000000000000000000000000000000000000000000000000000000001202b1624e710b138b7be713090b4389abd18a7c1bf37acab4abf367f45caa350ce1c74c66809eb89ea3f1855ba2db47f2d44f9a727db5ce63be7f4a974f2a3a75e168973a84c62bb1f9a7cb8611201a67ca5d752fcf2bfda8bb66b7e1126efee251730615730b5cd60e9716d50e3ae6b6bf0e2435be6fe514fd8c5246ac55f3a4e180abe8a7746eba2f9d44f399d36ed11808f426db3c962b6733f828ebc5153d22d04533ec2cbe42f00ff8493f5eb3e448c4ac5215f1b069c6878b3441acfdbc71b4adfbfd3569fce6d67c5e1b59f2259643091d7562334bcf1076eaf02439ab61f3a5b20a90bdd8ceaa21ad1515f4a085af61d73a0c355835374abecb3ead9f400000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000165275104224e04c1ba1afe575feeea2a5380450c1deff24abb6b36cd3b2b3ea1ad1ebdd0000000d8a5a9b31c3c0232e196d518e89fd8bf83acad430000000000000002000000000000000000000000000000000000000000000000000000000000000003","accessList":null}, error={"reason":"processing response error","code":"SERVER_ERROR","body":"{\"jsonrpc\":\"2.0\",\"id\":118,\"error\":{\"code\":-32603,\"message\":\"Error: VM Exception while processing transaction: reverted with an unrecognized custom error\",\"data\":{\"message\":\"Error: VM Exception while processing transaction: reverted with an unrecognized custom error\",\"data\":\"0xa225656d0000000000000000000000000000000000000000000000010000000000000002\"}}}","error":{"code":-32603,"data":{"message":"Error: VM Exception while processing transaction: reverted with an unrecognized custom error","data":"0xa225656d0000000000000000000000000000000000000000000000010000000000000002"}},"requestBody":"{\"method\":\"eth_estimateGas\",\"params\":[{\"from\":\"0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266\",\"to\":\"0xd8a5a9b31c3c0232e196d518e89fd8bf83acad43\",\"data\":\"0xc62fb69900000000000000000000000000000000000000000000000000000000000001202b1624e710b138b7be713090b4389abd18a7c1bf37acab4abf367f45caa350ce1c74c66809eb89ea3f1855ba2db47f2d44f9a727db5ce63be7f4a974f2a3a75e168973a84c62bb1f9a7cb8611201a67ca5d752fcf2bfda8bb66b7e1126efee251730615730b5cd60e9716d50e3ae6b6bf0e2435be6fe514fd8c5246ac55f3a4e180abe8a7746eba2f9d44f399d36ed11808f426db3c962b6733f828ebc5153d22d04533ec2cbe42f00ff8493f5eb3e448c4ac5215f1b069c6878b3441acfdbc71b4adfbfd3569fce6d67c5e1b59f2259643091d7562334bcf1076eaf02439ab61f3a5b20a90bdd8ceaa21ad1515f4a085af61d73a0c355835374abecb3ead9f400000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000165275104224e04c1ba1afe575feeea2a5380450c1deff24abb6b36cd3b2b3ea1ad1ebdd0000000d8a5a9b31c3c0232e196d518e89fd8bf83acad430000000000000002000000000000000000000000000000000000000000000000000000000000000003\"}],\"id\":118,\"jsonrpc\":\"2.0\"}","requestMethod":"POST","url":"http://localhost:8545"}, code=UNPREDICTABLE_GAS_LIMIT, version=providers/5.7.2)
    at Logger.makeError (/Users/chance/work/zkdao/node_modules/@ethersproject/logger/lib/index.js:238:21)
    at Logger.throwError (/Users/chance/work/zkdao/node_modules/@ethersproject/logger/lib/index.js:247:20)
    at checkError (/Users/chance/work/zkdao/node_modules/@ethersproject/providers/lib/json-rpc-provider.js:122:20)
    at JsonRpcProvider.<anonymous> (/Users/chance/work/zkdao/node_modules/@ethersproject/providers/lib/json-rpc-provider.js:751:47)
    at step (/Users/chance/work/zkdao/node_modules/@ethersproject/providers/lib/json-rpc-provider.js:48:23)
    at Object.throw (/Users/chance/work/zkdao/node_modules/@ethersproject/providers/lib/json-rpc-provider.js:29:53)
    at rejected (/Users/chance/work/zkdao/node_modules/@ethersproject/providers/lib/json-rpc-provider.js:21:65)
    at processTicksAndRejections (node:internal/process/task_queues:96:5) {
  reason: 'Error: VM Exception while processing transaction: reverted with an unrecognized custom error',
  code: 'UNPREDICTABLE_GAS_LIMIT',
  method: 'estimateGas',
  transaction: {
    from: '0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266',
    to: '0xD8a5a9b31c3C0232E196d518E89Fd8bF83AcAd43',
    data: '0xc62fb69900000000000000000000000000000000000000000000000000000000000001202b1624e710b138b7be713090b4389abd18a7c1bf37acab4abf367f45caa350ce1c74c66809eb89ea3f1855ba2db47f2d44f9a727db5ce63be7f4a974f2a3a75e168973a84c62bb1f9a7cb8611201a67ca5d752fcf2bfda8bb66b7e1126efee251730615730b5cd60e9716d50e3ae6b6bf0e2435be6fe514fd8c5246ac55f3a4e180abe8a7746eba2f9d44f399d36ed11808f426db3c962b6733f828ebc5153d22d04533ec2cbe42f00ff8493f5eb3e448c4ac5215f1b069c6878b3441acfdbc71b4adfbfd3569fce6d67c5e1b59f2259643091d7562334bcf1076eaf02439ab61f3a5b20a90bdd8ceaa21ad1515f4a085af61d73a0c355835374abecb3ead9f400000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000165275104224e04c1ba1afe575feeea2a5380450c1deff24abb6b36cd3b2b3ea1ad1ebdd0000000d8a5a9b31c3c0232e196d518e89fd8bf83acad430000000000000002000000000000000000000000000000000000000000000000000000000000000003',
    accessList: null
  },
  error: Error: processing response error (body="{\"jsonrpc\":\"2.0\",\"id\":118,\"error\":{\"code\":-32603,\"message\":\"Error: VM Exception while processing transaction: reverted with an unrecognized custom error\",\"data\":{\"message\":\"Error: VM Exception while processing transaction: reverted with an unrecognized custom error\",\"data\":\"0xa225656d0000000000000000000000000000000000000000000000010000000000000002\"}}}", error={"code":-32603,"data":{"message":"Error: VM Exception while processing transaction: reverted with an unrecognized custom error","data":"0xa225656d0000000000000000000000000000000000000000000000010000000000000002"}}, requestBody="{\"method\":\"eth_estimateGas\",\"params\":[{\"from\":\"0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266\",\"to\":\"0xd8a5a9b31c3c0232e196d518e89fd8bf83acad43\",\"data\":\"0xc62fb69900000000000000000000000000000000000000000000000000000000000001202b1624e710b138b7be713090b4389abd18a7c1bf37acab4abf367f45caa350ce1c74c66809eb89ea3f1855ba2db47f2d44f9a727db5ce63be7f4a974f2a3a75e168973a84c62bb1f9a7cb8611201a67ca5d752fcf2bfda8bb66b7e1126efee251730615730b5cd60e9716d50e3ae6b6bf0e2435be6fe514fd8c5246ac55f3a4e180abe8a7746eba2f9d44f399d36ed11808f426db3c962b6733f828ebc5153d22d04533ec2cbe42f00ff8493f5eb3e448c4ac5215f1b069c6878b3441acfdbc71b4adfbfd3569fce6d67c5e1b59f2259643091d7562334bcf1076eaf02439ab61f3a5b20a90bdd8ceaa21ad1515f4a085af61d73a0c355835374abecb3ead9f400000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000165275104224e04c1ba1afe575feeea2a5380450c1deff24abb6b36cd3b2b3ea1ad1ebdd0000000d8a5a9b31c3c0232e196d518e89fd8bf83acad430000000000000002000000000000000000000000000000000000000000000000000000000000000003\"}],\"id\":118,\"jsonrpc\":\"2.0\"}", requestMethod="POST", url="http://localhost:8545", code=SERVER_ERROR, version=web/5.7.1)
      at Logger.makeError (/Users/chance/work/zkdao/node_modules/@ethersproject/logger/lib/index.js:238:21)
      at Logger.throwError (/Users/chance/work/zkdao/node_modules/@ethersproject/logger/lib/index.js:247:20)
      at /Users/chance/work/zkdao/node_modules/@ethersproject/web/lib/index.js:313:32
      at step (/Users/chance/work/zkdao/node_modules/@ethersproject/web/lib/index.js:33:23)
      at Object.next (/Users/chance/work/zkdao/node_modules/@ethersproject/web/lib/index.js:14:53)
      at fulfilled (/Users/chance/work/zkdao/node_modules/@ethersproject/web/lib/index.js:5:58)
      at processTicksAndRejections (node:internal/process/task_queues:96:5) {
    reason: 'processing response error',
    code: 'SERVER_ERROR',
    body: '{"jsonrpc":"2.0","id":118,"error":{"code":-32603,"message":"Error: VM Exception while processing transaction: reverted with an unrecognized custom error","data":{"message":"Error: VM Exception while processing transaction: reverted with an unrecognized custom error","data":"0xa225656d0000000000000000000000000000000000000000000000010000000000000002"}}}',
    error: Error: Error: VM Exception while processing transaction: reverted with an unrecognized custom error
        at getResult (/Users/chance/work/zkdao/node_modules/@ethersproject/providers/lib/json-rpc-provider.js:191:21)
        at processJsonFunc (/Users/chance/work/zkdao/node_modules/@ethersproject/web/lib/index.js:356:22)
        at /Users/chance/work/zkdao/node_modules/@ethersproject/web/lib/index.js:288:46
        at step (/Users/chance/work/zkdao/node_modules/@ethersproject/web/lib/index.js:33:23)
        at Object.next (/Users/chance/work/zkdao/node_modules/@ethersproject/web/lib/index.js:14:53)
        at fulfilled (/Users/chance/work/zkdao/node_modules/@ethersproject/web/lib/index.js:5:58)
        at processTicksAndRejections (node:internal/process/task_queues:96:5) {
      code: -32603,
      data: [Object]
    },
    requestBody: '{"method":"eth_estimateGas","params":[{"from":"0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266","to":"0xd8a5a9b31c3c0232e196d518e89fd8bf83acad43","data":"0xc62fb69900000000000000000000000000000000000000000000000000000000000001202b1624e710b138b7be713090b4389abd18a7c1bf37acab4abf367f45caa350ce1c74c66809eb89ea3f1855ba2db47f2d44f9a727db5ce63be7f4a974f2a3a75e168973a84c62bb1f9a7cb8611201a67ca5d752fcf2bfda8bb66b7e1126efee251730615730b5cd60e9716d50e3ae6b6bf0e2435be6fe514fd8c5246ac55f3a4e180abe8a7746eba2f9d44f399d36ed11808f426db3c962b6733f828ebc5153d22d04533ec2cbe42f00ff8493f5eb3e448c4ac5215f1b069c6878b3441acfdbc71b4adfbfd3569fce6d67c5e1b59f2259643091d7562334bcf1076eaf02439ab61f3a5b20a90bdd8ceaa21ad1515f4a085af61d73a0c355835374abecb3ead9f400000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000165275104224e04c1ba1afe575feeea2a5380450c1deff24abb6b36cd3b2b3ea1ad1ebdd0000000d8a5a9b31c3c0232e196d518e89fd8bf83acad430000000000000002000000000000000000000000000000000000000000000000000000000000000003"}],"id":118,"jsonrpc":"2.0"}',
    requestMethod: 'POST',
    url: 'http://localhost:8545'
  }
}
@vivianjeng vivianjeng added the test Test related issues label May 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test Test related issues
Projects
None yet
Development

No branches or pull requests

2 participants