Skip to content

Commit

Permalink
make the tx immutable
Browse files Browse the repository at this point in the history
  • Loading branch information
OFRBG committed Jan 15, 2019
1 parent 1bbfc5a commit fed8116
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/web3-eth-accounts/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,10 @@ Accounts.prototype.privateKeyToAccount = function privateKeyToAccount(privateKey
return this._addAccountFunctions(Account.fromPrivate(privateKey));
};

Accounts.prototype.signTransaction = function signTransaction(tx, privateKey, callback) {
Accounts.prototype.signTransaction = function signTransaction(inputTx, privateKey, callback) {
var _this = this,
error = false,
tx = JSON.parse(JSON.stringify(inputTx)),
result;

callback = callback || function () {};
Expand Down

0 comments on commit fed8116

Please sign in to comment.