Skip to content
This repository has been archived by the owner on Aug 16, 2024. It is now read-only.

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
soerenbf committed Apr 15, 2024
1 parent 6c9fd09 commit 4ffd0c7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions samples/contractupdate/src/config.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import {
BrowserWalletConnector,
CONCORDIUM_WALLET_CONNECT_PROJECT_ID,
WalletConnectConnectionScope,
WalletConnectConnector,
WalletConnectEvent,
WalletConnectMethod,
WalletConnectNamespaceConfig,
ephemeralConnectorType,
} from '@concordium/react-components';
import { SignClientTypes } from '@walletconnect/types';
Expand All @@ -19,12 +19,12 @@ const WALLET_CONNECT_OPTS: SignClientTypes.Options = {
},
};

const WALLET_CONNECT_SCOPE: WalletConnectConnectionScope = {
const WALLET_CONNECT_NS_CONFIG: WalletConnectNamespaceConfig = {
methods: [WalletConnectMethod.SignAndSendTransaction],
events: [WalletConnectEvent.AccountsChanged, WalletConnectEvent.ChainChanged],
};

export const BROWSER_WALLET = ephemeralConnectorType(BrowserWalletConnector.create);
export const WALLET_CONNECT = ephemeralConnectorType((delegate, network) =>
WalletConnectConnector.create(WALLET_CONNECT_OPTS, delegate, network, WALLET_CONNECT_SCOPE)
WalletConnectConnector.create(WALLET_CONNECT_OPTS, delegate, network, WALLET_CONNECT_NS_CONFIG)
);
4 changes: 2 additions & 2 deletions samples/proofs/src/config.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import {
BrowserWalletConnector,
CONCORDIUM_WALLET_CONNECT_PROJECT_ID,
WalletConnectConnectionScope,
WalletConnectConnector,
WalletConnectEvent,
WalletConnectMethod,
WalletConnectNamespaceConfig,
ephemeralConnectorType,
} from '@concordium/react-components';
import { SignClientTypes } from '@walletconnect/types';
Expand All @@ -19,7 +19,7 @@ const WALLET_CONNECT_OPTS: SignClientTypes.Options = {
},
};

const WALLET_CONNECT_SCOPE: WalletConnectConnectionScope = {
const WALLET_CONNECT_SCOPE: WalletConnectNamespaceConfig = {
methods: [WalletConnectMethod.RequestVerifiablePresentation],
events: [WalletConnectEvent.AccountsChanged, WalletConnectEvent.ChainChanged],
};
Expand Down
4 changes: 2 additions & 2 deletions samples/sign-message/src/config.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import {
BrowserWalletConnector,
CONCORDIUM_WALLET_CONNECT_PROJECT_ID,
WalletConnectConnectionScope,
WalletConnectConnector,
WalletConnectEvent,
WalletConnectMethod,
WalletConnectNamespaceConfig,
ephemeralConnectorType,
} from '@concordium/react-components';
import { SignClientTypes } from '@walletconnect/types';
Expand All @@ -19,7 +19,7 @@ const WALLET_CONNECT_OPTS: SignClientTypes.Options = {
},
};

const WALLET_CONNECT_SCOPE: WalletConnectConnectionScope = {
const WALLET_CONNECT_SCOPE: WalletConnectNamespaceConfig = {
methods: [WalletConnectMethod.SignMessage],
events: [WalletConnectEvent.AccountsChanged, WalletConnectEvent.ChainChanged],
};
Expand Down

0 comments on commit 4ffd0c7

Please sign in to comment.