Merge branch 'master' of github.com:ethers-io/ethers.js

This commit is contained in:
Richard Moore 2017-11-19 22:26:14 -05:00
commit 83b5e4b4a3
5 changed files with 18 additions and 10 deletions

@ -5556,6 +5556,12 @@ function checkTransaction(transaction) {
transaction.gasLimit = transaction.gas;
}
// Some clients (TestRPC) do strange things like return 0x0 for the
// 0 address; correct this to be a real address
if (transaction.to && utils.bigNumberify(transaction.to).isZero) {
transaction.to = '0x0000000000000000000000000000000000000000';
}
// Rename input to data
if (transaction.input != null && transaction.data == null) {
transaction.data = transaction.input;
@ -5662,9 +5668,7 @@ var formatTransactionReceipt = {
function checkTransactionReceipt(transactionReceipt) {
var status = transactionReceipt.status;
var root = transactionReceipt.root;
if (!((status != null) ^ (root != null))) {
throw new Error('invalid transaction receipt - exactly one of status and root should be present');
}
var result = check(formatTransactionReceipt, transactionReceipt);
result.logs.forEach(function(entry, index) {
if (entry.transactionLogIndex == null) {

File diff suppressed because one or more lines are too long

10
dist/ethers.js vendored

@ -8446,6 +8446,12 @@ function checkTransaction(transaction) {
transaction.gasLimit = transaction.gas;
}
// Some clients (TestRPC) do strange things like return 0x0 for the
// 0 address; correct this to be a real address
if (transaction.to && utils.bigNumberify(transaction.to).isZero) {
transaction.to = '0x0000000000000000000000000000000000000000';
}
// Rename input to data
if (transaction.input != null && transaction.data == null) {
transaction.data = transaction.input;
@ -8552,9 +8558,7 @@ var formatTransactionReceipt = {
function checkTransactionReceipt(transactionReceipt) {
var status = transactionReceipt.status;
var root = transactionReceipt.root;
if (!((status != null) ^ (root != null))) {
throw new Error('invalid transaction receipt - exactly one of status and root should be present');
}
var result = check(formatTransactionReceipt, transactionReceipt);
result.logs.forEach(function(entry, index) {
if (entry.transactionLogIndex == null) {

4
dist/ethers.min.js vendored

File diff suppressed because one or more lines are too long

@ -11,7 +11,7 @@
},
"dependencies": {
"ethers-contracts": "^2.1.5",
"ethers-providers": "^2.1.9",
"ethers-providers": "^2.1.11",
"ethers-utils": "^2.1.6",
"ethers-wallet": "^2.1.4"
},