From 9def4a617062f559e71b62931aa6e2ffb04bdf2c Mon Sep 17 00:00:00 2001 From: ricmoo Date: Fri, 27 Jan 2017 15:49:15 -0500 Subject: [PATCH] Fix data bug for sendTransaction (was not incuded). --- lib/wallet.js | 1 + package.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/wallet.js b/lib/wallet.js index 23ac8dc8..7f8bedc8 100644 --- a/lib/wallet.js +++ b/lib/wallet.js @@ -238,6 +238,7 @@ utils.defineProperty(Wallet.prototype, 'sendTransaction', function(transaction) Promise.all([gasPrice, nonce]).then(function(results) { var signedTransaction = self.sign({ to: transaction.to, + data: transaction.data, gasLimit: gasLimit, gasPrice: results[0], nonce: results[1], diff --git a/package.json b/package.json index 36aefbf0..4e71c181 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ethers-wallet", - "version": "1.0.8", + "version": "1.0.9", "description": "Ethereum wallet library.", "main": "index.js", "scripts": {