@@ -16,14 +16,10 @@ import { walletRoutePaths } from '@routes';
16
16
import { useWalletManager } from '@hooks' ;
17
17
import { useWalletStore } from '@stores' ;
18
18
import { WalletType } from '@cardano-sdk/web-extension' ;
19
- import { config } from '@src/config' ;
20
19
import { Wallet } from '@lace/cardano' ;
21
20
import { useAnalyticsContext } from '@providers' ;
22
21
import { PostHogAction } from '@providers/AnalyticsProvider/analyticsTracker' ;
23
22
24
- const { CHAIN } = config ( ) ;
25
- const DEFAULT_CHAIN_ID = Wallet . Cardano . ChainIds [ CHAIN ] ;
26
-
27
23
type CreateWalletParams = {
28
24
coSigners : CoSigner [ ] ;
29
25
name : string ;
@@ -35,7 +31,7 @@ export const SharedWallet = (): JSX.Element => {
35
31
const history = useHistory ( ) ;
36
32
const { walletRepository, generateSharedWalletKey, saveSharedWalletKey, createInMemorySharedWallet } =
37
33
useWalletManager ( ) ;
38
- const { walletInfo, cardanoWallet } = useWalletStore ( ) ;
34
+ const { walletInfo, cardanoWallet, environmentName } = useWalletStore ( ) ;
39
35
const { page, setBackgroundPage } = useBackgroundPage ( ) ;
40
36
41
37
const [ sharedWalletKey , setSharedWalletKey ] = useState < Wallet . Crypto . Bip32PublicKeyHex > ( ) ;
@@ -60,7 +56,7 @@ export const SharedWallet = (): JSX.Element => {
60
56
61
57
await createInMemorySharedWallet ( {
62
58
name : data . name ,
63
- chainId : DEFAULT_CHAIN_ID ,
59
+ chainId : Wallet . Cardano . ChainIds [ environmentName ] ,
64
60
ownSignerWalletId : activeWalletId ,
65
61
quorumRules : data . quorumRules ,
66
62
coSigners : data . coSigners ,
0 commit comments