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
Specifically the "Should return fee estimation data for transfer of 1 ETH" clause gets unexpected values. The test passes (as all tests pass) when run through make test-e2e.
🔄 Reproduction Steps
Run era test node as if for e2e tests, but instead of running all tests, switch to the e2e-tests directory and run npx hardhat test --grep zks_estimateFee.
🤔 Expected Behavior
The test should pass.
😯 Current Behavior
🖥️ Environment
Rust version: nightly-2024-01-01, as specified in rust-toolchain.toml
Operating System & Version: Ubuntu 20.04.6
📋 Additional Context
The interference is apparently from the "hardhat_impersonateAccount & hardhat_stopImpersonatingAccount" test, which switches system contracts to their impersonating variant (and doesn't call hardhat_stopImpersonatingAccount to switch them back), which probably affects fee calculations.
📎 Log Output
'''
e2e-tests$ npx hardhat test --grep zks_estimateFee
zks_estimateFee
1) Should return fee estimation data for transfer of 1 ETH
0 passing (158ms)
1 failing
zks_estimateFee
Should return fee estimation data for transfer of 1 ETH:
Unexpected gas_limit
expected - actual
{
"_hex": "0x598cb8"
"_hex": "0x3708d7"
"_isBigNumber": true
}
at Context. (test/zks-apis.test.ts:33:58)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
The text was updated successfully, but these errors were encountered:
🐛 Bug Report for zkSync Era In-Memory Node
📝 Description
Specifically the "Should return fee estimation data for transfer of 1 ETH" clause gets unexpected values. The test passes (as all tests pass) when run through
make test-e2e
.🔄 Reproduction Steps
Run era test node as if for e2e tests, but instead of running all tests, switch to the
e2e-tests
directory and runnpx hardhat test --grep zks_estimateFee
.🤔 Expected Behavior
The test should pass.
😯 Current Behavior
🖥️ Environment
rust-toolchain.toml
📋 Additional Context
The interference is apparently from the "hardhat_impersonateAccount & hardhat_stopImpersonatingAccount" test, which switches system contracts to their impersonating variant (and doesn't call
hardhat_stopImpersonatingAccount
to switch them back), which probably affects fee calculations.📎 Log Output
'''
e2e-tests$ npx hardhat test --grep zks_estimateFee
zks_estimateFee
1) Should return fee estimation data for transfer of 1 ETH
0 passing (158ms)
1 failing
zks_estimateFee
Should return fee estimation data for transfer of 1 ETH:
Unexpected gas_limit
{
"_isBigNumber": true
}
at Context. (test/zks-apis.test.ts:33:58)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
The text was updated successfully, but these errors were encountered: