@connext/apps
Advanced tools
Comparing version 6.2.2 to 6.3.0
@@ -153,4 +153,4 @@ this.window = this.window || {}; | ||
})[0]; | ||
if (initialState.timelock.lt(blockNumber)) { | ||
throw new Error(`Cannot install an app with an expired timelock. Timelock in state: ${initialState.timelock}. Current block: ${blockNumber}`); | ||
if (initialState.expiry.lt(blockNumber)) { | ||
throw new Error(`Cannot install an app with an expired expiry. Expiry in state: ${initialState.expiry}. Current block: ${blockNumber}`); | ||
} | ||
@@ -157,0 +157,0 @@ unidirectionalCoinTransferValidation(initiatorDeposit, responderDeposit, initiatorTransfer, responderTransfer); |
@@ -156,4 +156,4 @@ import { enumify, SimpleLinkedTransferAppName, SimpleSignedTransferAppName, SimpleTwoPartySwapAppName, WithdrawAppName, HashLockTransferAppName, DepositAppName, OutcomeType, DepositAppStateEncoding, CONVENTION_FOR_ETH_ASSET_ID, ProtocolRoles, HashLockTransferAppActionEncoding, HashLockTransferAppStateEncoding, SimpleLinkedTransferAppActionEncoding, SimpleLinkedTransferAppStateEncoding, SimpleSignedTransferAppStateEncoding, SimpleSignedTransferAppActionEncoding, SimpleSwapAppStateEncoding, WithdrawAppStateEncoding, WithdrawAppActionEncoding, MultisigOperation, ProtocolNames } from '@connext/types'; | ||
})[0]; | ||
if (initialState.timelock.lt(blockNumber)) { | ||
throw new Error(`Cannot install an app with an expired timelock. Timelock in state: ${initialState.timelock}. Current block: ${blockNumber}`); | ||
if (initialState.expiry.lt(blockNumber)) { | ||
throw new Error(`Cannot install an app with an expired expiry. Expiry in state: ${initialState.expiry}. Current block: ${blockNumber}`); | ||
} | ||
@@ -160,0 +160,0 @@ unidirectionalCoinTransferValidation(initiatorDeposit, responderDeposit, initiatorTransfer, responderTransfer); |
@@ -160,4 +160,4 @@ 'use strict'; | ||
})[0]; | ||
if (initialState.timelock.lt(blockNumber)) { | ||
throw new Error(`Cannot install an app with an expired timelock. Timelock in state: ${initialState.timelock}. Current block: ${blockNumber}`); | ||
if (initialState.expiry.lt(blockNumber)) { | ||
throw new Error(`Cannot install an app with an expired expiry. Expiry in state: ${initialState.expiry}. Current block: ${blockNumber}`); | ||
} | ||
@@ -164,0 +164,0 @@ unidirectionalCoinTransferValidation(initiatorDeposit, responderDeposit, initiatorTransfer, responderTransfer); |
@@ -14,4 +14,4 @@ import { getSignerAddressFromPublicIdentifier } from "@connext/utils"; | ||
})[0]; | ||
if (initialState.timelock.lt(blockNumber)) { | ||
throw new Error(`Cannot install an app with an expired timelock. Timelock in state: ${initialState.timelock}. Current block: ${blockNumber}`); | ||
if (initialState.expiry.lt(blockNumber)) { | ||
throw new Error(`Cannot install an app with an expired expiry. Expiry in state: ${initialState.expiry}. Current block: ${blockNumber}`); | ||
} | ||
@@ -18,0 +18,0 @@ unidirectionalCoinTransferValidation(initiatorDeposit, responderDeposit, initiatorTransfer, responderTransfer); |
{ | ||
"name": "@connext/apps", | ||
"version": "6.2.2", | ||
"version": "6.3.0", | ||
"description": "Connext Counterfactual Apps", | ||
@@ -22,4 +22,4 @@ "main": "dist/index.js", | ||
"@connext/contracts": "2.0.5", | ||
"@connext/utils": "6.2.2", | ||
"@connext/types": "6.2.2", | ||
"@connext/utils": "6.3.0", | ||
"@connext/types": "6.3.0", | ||
"ethers": "4.0.47", | ||
@@ -26,0 +26,0 @@ "rollup": "2.7.2", |
@@ -25,5 +25,5 @@ import { MethodParams, CoinTransfer, HashLockTransferAppState } from "@connext/types"; | ||
if (initialState.timelock.lt(blockNumber)) { | ||
if (initialState.expiry.lt(blockNumber)) { | ||
throw new Error( | ||
`Cannot install an app with an expired timelock. Timelock in state: ${initialState.timelock}. Current block: ${blockNumber}`, | ||
`Cannot install an app with an expired expiry. Expiry in state: ${initialState.expiry}. Current block: ${blockNumber}`, | ||
); | ||
@@ -30,0 +30,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
548593