@@ -31,7 +31,6 @@ import {
31
31
CommunicationType ,
32
32
InMemoryKeyAgent ,
33
33
KeyAgentDependencies ,
34
- KeyPurpose ,
35
34
Witnesser ,
36
35
util
37
36
} from '@cardano-sdk/key-management' ;
@@ -281,7 +280,6 @@ export type GetWalletProps = {
281
280
env : any ;
282
281
idx ?: number ;
283
282
logger : Logger ;
284
- purpose : KeyPurpose ;
285
283
name : string ;
286
284
polling ?: PollingConfig ;
287
285
handlePolicyIds ?: Cardano . PolicyId [ ] ;
@@ -295,7 +293,6 @@ export type GetSharedWalletProps = {
295
293
env : any ;
296
294
logger : Logger ;
297
295
name : string ;
298
- purpose : KeyPurpose ;
299
296
polling ?: PollingConfig ;
300
297
handlePolicyIds ?: Cardano . PolicyId [ ] ;
301
298
stores ?: storage . WalletStores ;
@@ -327,7 +324,7 @@ const patchInitializeTxToRespectEpochBoundary = <T extends ObservableWallet>(
327
324
* @returns an object containing the wallet and providers passed to it
328
325
*/
329
326
export const getWallet = async ( props : GetWalletProps ) => {
330
- const { env, idx, logger, name, stores, customKeyParams, keyAgent, witnesser, purpose } = props ;
327
+ const { env, idx, logger, name, stores, customKeyParams, keyAgent, witnesser } = props ;
331
328
let polling = props . polling ;
332
329
const providers = {
333
330
addressDiscovery : await addressDiscoveryFactory . create (
@@ -384,7 +381,7 @@ export const getWallet = async (props: GetWalletProps) => {
384
381
}
385
382
386
383
const wallet = createPersonalWallet (
387
- { name, polling, purpose } ,
384
+ { name, polling } ,
388
385
{
389
386
...providers ,
390
387
bip32Account,
@@ -411,7 +408,7 @@ export const getWallet = async (props: GetWalletProps) => {
411
408
* @returns an object containing the wallet and providers passed to it
412
409
*/
413
410
export const getSharedWallet = async ( props : GetSharedWalletProps ) => {
414
- const { env, logger, name, polling, stores, paymentScript, stakingScript, witnesser, purpose } = props ;
411
+ const { env, logger, name, polling, stores, paymentScript, stakingScript, witnesser } = props ;
415
412
const providers = {
416
413
assetProvider : await assetProviderFactory . create ( env . ASSET_PROVIDER , env . ASSET_PROVIDER_PARAMS , logger ) ,
417
414
chainHistoryProvider : await chainHistoryProviderFactory . create (
@@ -439,7 +436,7 @@ export const getSharedWallet = async (props: GetSharedWalletProps) => {
439
436
utxoProvider : await utxoProviderFactory . create ( env . UTXO_PROVIDER , env . UTXO_PROVIDER_PARAMS , logger )
440
437
} ;
441
438
const wallet = createSharedWallet (
442
- { name, polling, purpose } ,
439
+ { name, polling } ,
443
440
{
444
441
...providers ,
445
442
logger,
0 commit comments