@0x/web3-wrapper
Advanced tools
Comparing version 3.1.5 to 3.1.6
[ | ||
{ | ||
"version": "3.1.6", | ||
"changes": [ | ||
{ | ||
"note": "Unmarshall mined transaction receipts", | ||
"pr": 1308 | ||
} | ||
], | ||
"timestamp": 1543401373 | ||
}, | ||
{ | ||
"version": "3.1.5", | ||
@@ -4,0 +14,0 @@ "changes": [ |
@@ -8,2 +8,6 @@ <!-- | ||
## v3.1.6 - _November 28, 2018_ | ||
* Unmarshall mined transaction receipts (#1308) | ||
## v3.1.5 - _November 21, 2018_ | ||
@@ -10,0 +14,0 @@ |
@@ -281,3 +281,6 @@ "use strict"; | ||
transactionReceiptRpc = _a.sent(); | ||
if (!_.isNull(transactionReceiptRpc)) { | ||
// HACK Parity can return a pending transaction receipt. We check for a non null | ||
// block number before continuing with returning a fully realised receipt. | ||
// ref: https://github.com/paritytech/parity-ethereum/issues/1180 | ||
if (!_.isNull(transactionReceiptRpc) && !_.isNull(transactionReceiptRpc.blockNumber)) { | ||
transactionReceiptRpc.status = Web3Wrapper._normalizeTxReceiptStatus(transactionReceiptRpc.status); | ||
@@ -829,3 +832,3 @@ transactionReceipt = marshaller_1.marshaller.unmarshalTransactionReceipt(transactionReceiptRpc); | ||
transactionReceipt = _a.sent(); | ||
if (!_.isUndefined(transactionReceipt) && !_.isNull(transactionReceipt.blockNumber)) { | ||
if (!_.isUndefined(transactionReceipt)) { | ||
logsWithDecodedArgs = _.map(transactionReceipt.logs, this.abiDecoder.tryToDecodeLogOrNoop.bind(this.abiDecoder)); | ||
@@ -832,0 +835,0 @@ transactionReceiptWithDecodedLogArgs = __assign({}, transactionReceipt, { logs: logsWithDecodedArgs }); |
{ | ||
"name": "@0x/web3-wrapper", | ||
"version": "3.1.5", | ||
"version": "3.1.6", | ||
"engines": { | ||
@@ -69,3 +69,3 @@ "node": ">=6.12" | ||
}, | ||
"gitHead": "f46a49fd13c88dd86c9661d76bace18844642c04" | ||
"gitHead": "4861e480597547527397ca4df52c29e5caa798c8" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
2635
0
167467
36