@connext/apps
Advanced tools
Comparing version 6.0.6 to 6.0.7
@@ -270,3 +270,3 @@ this.window = this.window || {}; | ||
} | ||
let recovered = await utils.verifyChannelMessage(initialState.data, initialState.signatures[0]); | ||
let recovered = await utils.recoverAddressFromChannelMessage(initialState.data, initialState.signatures[0]); | ||
if (recovered !== initialState.signers[0]) { | ||
@@ -273,0 +273,0 @@ throw new Error(`Cannot install withdraw app - incorrect signer recovered from initiator sig on data. |
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'; | ||
import { toBN, getAddressFromAssetId, stringify, getSignerAddressFromPublicIdentifier, calculateExchange, bigNumberifyJson, verifyChannelMessage } from '@connext/utils'; | ||
import { toBN, getAddressFromAssetId, stringify, getSignerAddressFromPublicIdentifier, calculateExchange, bigNumberifyJson, recoverAddressFromChannelMessage } from '@connext/utils'; | ||
import { Zero, HashZero } from 'ethers/constants'; | ||
@@ -274,3 +274,3 @@ import { ERC20, MinimumViableMultisig, ConditionalTransactionDelegateTarget } from '@connext/contracts'; | ||
} | ||
let recovered = await verifyChannelMessage(initialState.data, initialState.signatures[0]); | ||
let recovered = await recoverAddressFromChannelMessage(initialState.data, initialState.signatures[0]); | ||
if (recovered !== initialState.signers[0]) { | ||
@@ -277,0 +277,0 @@ throw new Error(`Cannot install withdraw app - incorrect signer recovered from initiator sig on data. |
@@ -278,3 +278,3 @@ 'use strict'; | ||
} | ||
let recovered = await utils.verifyChannelMessage(initialState.data, initialState.signatures[0]); | ||
let recovered = await utils.recoverAddressFromChannelMessage(initialState.data, initialState.signatures[0]); | ||
if (recovered !== initialState.signers[0]) { | ||
@@ -281,0 +281,0 @@ throw new Error(`Cannot install withdraw app - incorrect signer recovered from initiator sig on data. |
@@ -1,2 +0,2 @@ | ||
import { bigNumberifyJson, getSignerAddressFromPublicIdentifier, verifyChannelMessage } from "@connext/utils"; | ||
import { bigNumberifyJson, getSignerAddressFromPublicIdentifier, recoverAddressFromChannelMessage } from "@connext/utils"; | ||
import { HashZero, Zero } from "ethers/constants"; | ||
@@ -25,3 +25,3 @@ import { unidirectionalCoinTransferValidation } from "../shared"; | ||
} | ||
let recovered = await verifyChannelMessage(initialState.data, initialState.signatures[0]); | ||
let recovered = await recoverAddressFromChannelMessage(initialState.data, initialState.signatures[0]); | ||
if (recovered !== initialState.signers[0]) { | ||
@@ -28,0 +28,0 @@ throw new Error(`Cannot install withdraw app - incorrect signer recovered from initiator sig on data. |
{ | ||
"name": "@connext/apps", | ||
"version": "6.0.6", | ||
"version": "6.0.7", | ||
"description": "Connext Counterfactual Apps", | ||
@@ -21,6 +21,6 @@ "main": "dist/index.js", | ||
"devDependencies": { | ||
"@connext/cf-core": "6.0.6", | ||
"@connext/cf-core": "6.0.7", | ||
"@connext/contracts": "2.0.2", | ||
"@connext/utils": "6.0.6", | ||
"@connext/types": "6.0.6", | ||
"@connext/utils": "6.0.7", | ||
"@connext/types": "6.0.7", | ||
"ethers": "4.0.46", | ||
@@ -27,0 +27,0 @@ "rollup": "1.31.1", |
import { MethodParams, WithdrawAppState } from "@connext/types"; | ||
import { bigNumberifyJson, getSignerAddressFromPublicIdentifier, verifyChannelMessage } from "@connext/utils"; | ||
import { bigNumberifyJson, getSignerAddressFromPublicIdentifier, recoverAddressFromChannelMessage } from "@connext/utils"; | ||
import { HashZero, Zero } from "ethers/constants"; | ||
@@ -53,3 +53,3 @@ | ||
let recovered = await verifyChannelMessage(initialState.data, initialState.signatures[0]); | ||
let recovered = await recoverAddressFromChannelMessage(initialState.data, initialState.signatures[0]); | ||
@@ -56,0 +56,0 @@ if (recovered !== initialState.signers[0]) { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
529890