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
Describe the bug
In the current version network-browser tests are designed to be executed in parallel to make the workflow faster. All transactions are executed simultaneously with pre-calculated nonces.
This sometimes causes an error where the same nonce is being reused.
The issue affects only test pipeline.
To Reproduce
Steps to reproduce the behavior:
Go to network-browser module
Run test pipeline
Logs:
initializing provider and contracts
granting ROLE: VALIDATOR_MANAGER_ROLE
granting ROLE: SCHAIN_TYPE_MANAGER_ROLE
granting ROLE: SCHAIN_CREATOR_ROLE
all roles granted
going to register validator
number of active validators: 1
going to enable validator
[11](https://github.com/skalenetwork/ima-agent/actions/runs/7630203789/job/20785351519#step:7:12)9 | case "NUMERIC_FAULT":
[12](https://github.com/skalenetwork/ima-agent/actions/runs/7630203789/job/20785351519#step:7:13)0 | case "BUFFER_OVERRUN":
121 | error = new RangeError(message);
122 | break;
123 | default:
124 | error = new Error(message);
^
error: nonce has already been used (transaction="0x02f891827a695a843b9aca00843b9aca0e8301e18a944466c43ecfce7e973df4041b026a6bae18e4d00c80a4790ac49b0000000000000000000000000000000000000000000000000000000000000001c080a0feb0a2d5193b294695c11b9bb9f8b958145cd3e7699340184141787ff8681722a04f674bcd8f2edac26d6891d5[13](https://github.com/skalenetwork/ima-agent/actions/runs/7630203789/job/20785351519#step:7:14)ca040512e0465aae2cbd8f5dd67ad47badb588", info={ "error": { "code": -3[20](https://github.com/skalenetwork/ima-agent/actions/runs/7630203789/job/20785351519#step:7:21)00, "data": { "message": "Nonce too low. Expected nonce to be 91 but got 90." }, "message": "Nonce too low. Expected nonce to be 91 but got 90." } }, code=NONCE_EXPIRED, version=6.8.1)
info: {
"error": {
"code": -32000,
"message": "Nonce too low. Expected nonce to be 91 but got 90.",
"data": {
"message": "Nonce too low. Expected nonce to be 91 but got 90."
}
}
}
code: "NONCE_EXPIRED"
at makeError (/home/runner/work/ima-agent/ima-agent/network-browser/node_modules/ethers/lib.esm/utils/errors.js:124:[21](https://github.com/skalenetwork/ima-agent/actions/runs/7630203789/job/20785351519#step:7:22))
at /home/runner/work/ima-agent/ima-agent/network-browser/node_modules/ethers/lib.esm/providers/provider-jsonrpc.js:[26](https://github.com/skalenetwork/ima-agent/actions/runs/7630203789/job/20785351519#step:7:27)4:40
at /home/runner/work/ima-agent/ima-agent/network-browser/tests/browser.test.ts:[33](https://github.com/skalenetwork/ima-agent/actions/runs/7630203789/job/20785351519#step:7:34):1
(fail) browser module test > browse
The text was updated successfully, but these errors were encountered:
Describe the bug
In the current version
network-browser
tests are designed to be executed in parallel to make the workflow faster. All transactions are executed simultaneously with pre-calculated nonces.This sometimes causes an error where the same nonce is being reused.
The issue affects only test pipeline.
To Reproduce
Steps to reproduce the behavior:
Logs:
The text was updated successfully, but these errors were encountered: