-
Notifications
You must be signed in to change notification settings - Fork 684
Usage of FakeTransaction from ethereumjs-tx #131
Comments
It seems that the problem is fixed in the ethereumjs-tx in version 1.3.6, but unfortunately another problem is introduced ethereumjs/ethereumjs-tx#113 because of which fake transactions still doesn't work. |
I can confirm reproduction of this issue. Will release a fix for |
Just solved that mystery - I've fixed this by pinning Thanks for this, @kipliklotrika! |
Closed by 7326b51. |
|
I think this issue was related to a bug that was fixed in ethereumjs/ethereumjs-tx#118 [email protected] contains the fix! Should also fix #523 |
I have a fairly simple setup: deploy some contracts and then run some tests. Initially it worked via
ganache-cli
, but encountered an issue which is addressed in this PR: #130.To fix it I started to use server from
ganache-core
, but strangely enough the results were bit different andcore
breaks first timeeth_sendRawTransaction
is used.cli
seems to work fine. The transaction's data is exactly the same and contracts are deployed successfully in both cases.The error message said:
TXRejectedError: the tx doesn\'t have the correct nonce. account has nonce of: 0 tx has nonce of: 6
, but it seemed rather suspicious as I always obtain nonce directly from the rpc node viaeth_getTransactionCount
.I pinned down the problem to missing
from
field after the transaction was re-created on the server side. This: unao@f656b6e seems to fix the issue.To be honest I do not understand what is the root cause of it and if my hacky fix is safe/good enough.
The real mysterious part is why it works in case of
cli
, but notcore
. From what I sawcli
just starts the server. My best hypotheses would be that webpack build somehow modifies the semantics slightly.Your Environment
The text was updated successfully, but these errors were encountered: