Add missing chainId to transaction responses (#700).

This commit is contained in:
Richard Moore 2020-01-10 20:59:28 -05:00
parent 12da07579a
commit 26d3271643
No known key found for this signature in database
GPG Key ID: 665176BE8E9DC651

@ -247,6 +247,9 @@ function checkTransactionResponse(transaction: any): TransactionResponse {
if (typeof(networkId) !== 'number') { networkId = 0; }
result.networkId = networkId;
if (result.chainId == null && networkId != null) {
result.chainId = networkId;
}
// 0x0000... should actually be null
if (result.blockHash && result.blockHash.replace(/0/g, '') === 'x') {