Comparing version 4.1.2 to 4.1.3
@@ -417,7 +417,8 @@ "use strict"; | ||
const update = item.update; | ||
this.log.info(`Applying update from hub: ${update.reason} txCount=${update.txCount}: ${update}`); | ||
this.log.info(`Applying update from hub: ${update.reason} txCount=${update.txCount}: ` + | ||
`${JSON.stringify(update, undefined, 2)}`); | ||
const connextState = this.getState(); | ||
const prevState = connextState.persistent.channel; | ||
const latestPending = connextState.persistent.latestPending; | ||
this.log.info(`prevState: ${prevState}`); | ||
this.log.debug(`prevState: ${JSON.stringify(prevState, undefined, 2)}`); | ||
if (update.txCount && update.txCount <= prevState.txCountGlobal) { | ||
@@ -424,0 +425,0 @@ this.log.warn(`StateUpdateController received update with old ` + |
@@ -156,8 +156,8 @@ "use strict"; | ||
return __awaiter(this, void 0, void 0, function* () { | ||
if (this.external) { | ||
return this.signAndSendTransactionExternally(txReq); | ||
} | ||
if (this.signer) { | ||
return this.signer.sendTransaction(txReq); | ||
} | ||
if (this.external) { | ||
return this.signAndSendTransactionExternally(txReq); | ||
} | ||
const signedTx = yield this.signTransaction(txReq); | ||
@@ -164,0 +164,0 @@ return this.provider.sendTransaction(signedTx); |
{ | ||
"name": "connext", | ||
"description": "Shared code between wallet and hub", | ||
"version": "4.1.2", | ||
"version": "4.1.3", | ||
"main": "dist/index.js", | ||
@@ -6,0 +6,0 @@ "types": "types/index.d.ts", |
@@ -269,3 +269,4 @@ import { Unsubscribe } from 'redux' | ||
const update = item.update | ||
this.log.info(`Applying update from hub: ${update.reason} txCount=${update.txCount}: ${update}`) | ||
this.log.info(`Applying update from hub: ${update.reason} txCount=${update.txCount}: `+ | ||
`${JSON.stringify(update, undefined, 2)}`) | ||
@@ -276,3 +277,3 @@ const connextState = this.getState() | ||
this.log.info(`prevState: ${prevState}`) | ||
this.log.debug(`prevState: ${JSON.stringify(prevState, undefined, 2)}`) | ||
@@ -279,0 +280,0 @@ if (update.txCount && update.txCount <= prevState.txCountGlobal) { |
@@ -158,8 +158,8 @@ import * as eth from 'ethers' | ||
public async sendTransaction(txReq: TransactionRequest): Promise<TransactionResponse> { | ||
if (this.external){ | ||
return this.signAndSendTransactionExternally(txReq) | ||
} | ||
if (this.signer){ | ||
return this.signer.sendTransaction(txReq) | ||
} | ||
if (this.external){ | ||
return this.signAndSendTransactionExternally(txReq) | ||
} | ||
const signedTx: string = await this.signTransaction(txReq) | ||
@@ -166,0 +166,0 @@ return this.provider.sendTransaction(signedTx) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1618615
271
31255