Skip to content

Commit

Permalink
fix: make signTransaction return a promise, fixes web3#1213
Browse files Browse the repository at this point in the history
  • Loading branch information
phra committed Dec 21, 2017
1 parent 6816ce5 commit f7f687d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/web3-eth-accounts/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ Accounts.prototype.signTransaction = function signTransaction(tx, privateKey, ca

// Returns synchronously if nonce, chainId and price are provided
if (tx.nonce !== undefined && tx.chainId !== undefined && tx.gasPrice !== undefined) {
return signed(tx);
return Promise.resolve(signed(tx));
}


Expand Down

0 comments on commit f7f687d

Please sign in to comment.