Add missing chainId to transaction responses (#700).
This commit is contained in:
parent
12da07579a
commit
26d3271643
@ -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') {
|
||||
|
Loading…
Reference in New Issue
Block a user