diff --git a/apps/multisig/package.json b/apps/multisig/package.json index 3b1a9a4c..3762e875 100644 --- a/apps/multisig/package.json +++ b/apps/multisig/package.json @@ -61,7 +61,7 @@ "@talismn/connect-wallets": "^1.1.3", "@talismn/dot-pool-selector": "snapshot", "@talismn/icons": "workspace:^", - "@talismn/siws": "0.0.8", + "@talismn/siws": "0.0.12", "@talismn/ui": "workspace:^", "@talismn/util": "^0.2.0", "@uiw/codemirror-themes": "^4.21.13", diff --git a/apps/multisig/src/domains/auth/index.ts b/apps/multisig/src/domains/auth/index.ts index ac253777..85380542 100644 --- a/apps/multisig/src/domains/auth/index.ts +++ b/apps/multisig/src/domains/auth/index.ts @@ -1,7 +1,7 @@ import { useCallback, useMemo, useState } from 'react' import { atom, selector, useRecoilState, useRecoilValue, useSetRecoilState } from 'recoil' import { web3FromSource } from '@polkadot/extension-dapp' -import { SiwsMessage } from '@talismn/siws' +import { Siws, SiwsMessage } from '@talismn/siws' import { InjectedAccount, accountsState } from '../extension' import persistAtom from '../persist' import { captureException } from '@sentry/react' @@ -114,6 +114,7 @@ export const useSignIn = () => { statement: 'Welcome to Signet! Please sign in to continue.', chainName: 'Substrate', azeroId: resolve(ss58Address)?.a0id, + version: Siws.CURRENT_VERSION, }) // sign payload for backend verification diff --git a/apps/multisig/src/domains/azeroid/AzeroIDResolver.tsx b/apps/multisig/src/domains/azeroid/AzeroIDResolver.tsx index 832f49c6..b2dbb24c 100644 --- a/apps/multisig/src/domains/azeroid/AzeroIDResolver.tsx +++ b/apps/multisig/src/domains/azeroid/AzeroIDResolver.tsx @@ -4,7 +4,7 @@ import { resolveDomainToAddress, alephzero, alephzeroTestnet, - CONTRACT_ADDRESSES, + SupportedChainId, } from '@azns/resolver-core' import { ApiPromise, WsProvider } from '@polkadot/api' import { Address } from '@util/addresses' @@ -57,8 +57,8 @@ const resolveAzeroIDQuery = async (query: string, api: ApiPromise, testnetApi?: if (!address) return resolve({}) const testnetAzeroIdQuery = resolveAddressToDomain(query, { + chainId: SupportedChainId.AlephZeroTestnet, customApi: testnetApi, - customContractAddresses: CONTRACT_ADDRESSES['alephzero-testnet'], }) const azeroIdQuery = resolveAddressToDomain(query, { customApi: api }) const [testnetAzeroId, azeroId] = await Promise.all([testnetAzeroIdQuery, azeroIdQuery]) diff --git a/apps/multisig/src/layouts/Dapps/index.tsx b/apps/multisig/src/layouts/Dapps/index.tsx index e516a9d0..837cc33b 100644 --- a/apps/multisig/src/layouts/Dapps/index.tsx +++ b/apps/multisig/src/layouts/Dapps/index.tsx @@ -222,7 +222,7 @@ export const Dapps: React.FC = () => { Dapps - Custom Input + Custom URL
@@ -247,7 +247,7 @@ export const Dapps: React.FC = () => { ))}
- +
@@ -257,7 +257,7 @@ export const Dapps: React.FC = () => { Visit Dapp -
+

Note that dapps have to integrate with the{' '}