-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
sendSignedTransaction() error: invalid sender #2915
Comments
But this is not a bug of |
Besides above, I can not get anything from Promise Event |
I am having issues with |
@shumailxyz When I try to use a lower version: |
Ohhh, I find a similar issue that mentions the event |
I can also confirm that ethereumjs-tx version 2.0.0 is broken:
Reverting to 1.3.7 fixes the problem. |
@PaulRBerg If you want to use the version: 2.0.0, you should add extra parameter var tx = new Tx(rawTx, {'chain':'ropsten'}); |
I've closed this because your problem is related to the ethereumjs-tx package. |
Fixes: UnhandledPromiseRejectionWarning: Error: invalid sender Via web3/web3.js#2915 (comment)
confirmed v1.3.7 works. |
This works 100% Thanks. |
|
try also specifying the right chainId for Tx module using the I haven't tested this, so I don't know if it works. import Common from 'ethereumjs-common'
const BSC_MAIN = Common.forCustomChain(
'mainnet', {
name: 'bnb',
networkId: 56,
chainId: 56
},
'petersburg'
)
var tx = new Tx(rawTx, {common: BSC_MAIN}); |
thanks, i'll test it though i switched to python |
does it work? |
did it work? |
It has worked for me. |
Change the below
to the below
|
Description
Expected behavior
Actual behavior
Steps to reproduce the behavior
Error Logs
Versions
The text was updated successfully, but these errors were encountered: