Skip to content

Commit

Permalink
Merge pull request #2319 from ethereum/issue/2283
Browse files Browse the repository at this point in the history
Fixes the module instance reference for the account.signTransaction
  • Loading branch information
nivida authored Feb 4, 2019
2 parents d7054bd + ebf3d1e commit ac86250
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/web3-eth-accounts/src/Accounts.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export default class Accounts extends AbstractWeb3Module {
_addAccountFunctions(account) {
// add sign functions
account.signTransaction = (tx, callback) => {
return this.signTransaction(tx, account.privateKey, callback);
return this.signTransaction(tx, account.privateKey, callback).bind(this);
};

account.sign = (data) => {
Expand Down

0 comments on commit ac86250

Please sign in to comment.