Merge branch 'master' of github.com:ethers-io/ethers.js
This commit is contained in:
commit
83b5e4b4a3
10
dist/ethers-providers.js
vendored
10
dist/ethers-providers.js
vendored
@ -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) {
|
||||
|
2
dist/ethers-providers.min.js
vendored
2
dist/ethers-providers.min.js
vendored
File diff suppressed because one or more lines are too long
10
dist/ethers.js
vendored
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
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"
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user