-
Notifications
You must be signed in to change notification settings - Fork 5k
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
The signTransaction method does not work correctly. #1793
Comments
I had the same error as in #1986 when using |
3 similar comments
I had the same error as in #1986 when using |
I had the same error as in #1986 when using |
I had the same error as in #1986 when using |
I have also just verified this problem - it seems that Rolling back to |
Input:
oTX:
{
"to": "0xed32e0fd016810B7d3606e1Ae163B58266c544B0",
"gasLimit": "0xc350",
"value": "0x2386f26fc10000",
"chainId": "0x01",
"gasPrice": "0x4a817c800",
"nonce": "0x4"
};
var key = "9cb1 ... 2a84";
Method 1 - OK:
var _key = new Buffer(key, 'hex');
var _tx = new TX(tx);
_tx.sign(_key);
var _raw = _tx.serialize();
var _rr = '0x' + _raw.toString('hex');
:: HASH1 = '0xf86b ... 25a00b3b ... 7f39';
Method 2 - ERR:
web3.eth.signTransaction(tx, key).then(trans);
:: HASH2 = '0xf86b ... 25a009fd ... 08b5';
And the description of the method signTransaction in the documentation does not correspond to the actual result.
The text was updated successfully, but these errors were encountered: