Updated dist files.
This commit is contained in:
parent
67a29eb92e
commit
dae3a5b8b1
10
dist/ethers-providers.js
vendored
10
dist/ethers-providers.js
vendored
@ -5556,6 +5556,12 @@ function checkTransaction(transaction) {
|
|||||||
transaction.gasLimit = transaction.gas;
|
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
|
// Rename input to data
|
||||||
if (transaction.input != null && transaction.data == null) {
|
if (transaction.input != null && transaction.data == null) {
|
||||||
transaction.data = transaction.input;
|
transaction.data = transaction.input;
|
||||||
@ -5662,9 +5668,7 @@ var formatTransactionReceipt = {
|
|||||||
function checkTransactionReceipt(transactionReceipt) {
|
function checkTransactionReceipt(transactionReceipt) {
|
||||||
var status = transactionReceipt.status;
|
var status = transactionReceipt.status;
|
||||||
var root = transactionReceipt.root;
|
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);
|
var result = check(formatTransactionReceipt, transactionReceipt);
|
||||||
result.logs.forEach(function(entry, index) {
|
result.logs.forEach(function(entry, index) {
|
||||||
if (entry.transactionLogIndex == null) {
|
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;
|
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
|
// Rename input to data
|
||||||
if (transaction.input != null && transaction.data == null) {
|
if (transaction.input != null && transaction.data == null) {
|
||||||
transaction.data = transaction.input;
|
transaction.data = transaction.input;
|
||||||
@ -8552,9 +8558,7 @@ var formatTransactionReceipt = {
|
|||||||
function checkTransactionReceipt(transactionReceipt) {
|
function checkTransactionReceipt(transactionReceipt) {
|
||||||
var status = transactionReceipt.status;
|
var status = transactionReceipt.status;
|
||||||
var root = transactionReceipt.root;
|
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);
|
var result = check(formatTransactionReceipt, transactionReceipt);
|
||||||
result.logs.forEach(function(entry, index) {
|
result.logs.forEach(function(entry, index) {
|
||||||
if (entry.transactionLogIndex == null) {
|
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": {
|
"dependencies": {
|
||||||
"ethers-contracts": "^2.1.5",
|
"ethers-contracts": "^2.1.5",
|
||||||
"ethers-providers": "^2.1.9",
|
"ethers-providers": "^2.1.11",
|
||||||
"ethers-utils": "^2.1.6",
|
"ethers-utils": "^2.1.6",
|
||||||
"ethers-wallet": "^2.1.4"
|
"ethers-wallet": "^2.1.4"
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user