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
During investigation it was found that this issue is caused by parallel execution of eth_sendRawTransaction with the same nonces. The behaviour is next:
beforeEach hook maps async lambda on array with eth accounts (line 63 in RefundEscrow.test.js)
lambdas simultaneously calls RefundEscrow.deposit() contract method using the same nonce - this is approved by proxy's logs.
evm loader fails transaction that was received later.
After talk with @otselnik we concluded that this behaviour is expected. The solution to this issue could be forcing tests to execute functions in sequential manner - this approach was tested by me on local environment with this particular test case and approved to solve issue
It needs to add a feature:
A test should use the right nonce for a transaction by sending getTransactionCount.
For example: test/utils/escrow/RefundEscrow.test.js
Additional Info:
https://github.com/neonlabsorg/proxy-model.py/blob/7841b07f33d9d45b68b621c711ff4c7e67b7f3f6/proxy/testing/test_eth_sendRawTransaction.py#L172
The text was updated successfully, but these errors were encountered: