Skip to content

Commit

Permalink
fix: make signTransaction return a promise, fixes #1213
Browse files Browse the repository at this point in the history
  • Loading branch information
phra committed Dec 6, 2017
1 parent dbf7bfc commit e5e89e6
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 e5e89e6

Please sign in to comment.