@@ -29,7 +29,7 @@ import type {
2929 Bip44Account ,
3030} from './api' ;
3131import {
32- AccountWalletCategory ,
32+ AccountWalletType ,
3333 toAccountGroupId ,
3434 toAccountWalletId ,
3535 toDefaultAccountGroupId ,
@@ -688,7 +688,7 @@ describe('index', () => {
688688 await setupMultichainAccountWallet ( ) ;
689689
690690 const groupId : AccountGroupId = toAccountGroupId (
691- toAccountWalletId ( AccountWalletCategory . Keyring , 'bad-keyring-id' ) ,
691+ toAccountWalletId ( AccountWalletType . Keyring , 'bad-keyring-id' ) ,
692692 'bad-index' ,
693693 ) ;
694694 const group : AccountGroup < MockedAccount > | undefined =
@@ -711,16 +711,16 @@ describe('index', () => {
711711 // test AccountGroup too!
712712 const wallet = await setupMultichainAccountWallet ( ) ;
713713
714- expect ( wallet . category ) . toBe ( AccountWalletCategory . Entropy ) ;
714+ expect ( wallet . type ) . toBe ( AccountWalletType . Entropy ) ;
715715 expect ( wallet . id ) . toStrictEqual (
716- toAccountWalletId ( AccountWalletCategory . Entropy , wallet . entropySource ) ,
716+ toAccountWalletId ( AccountWalletType . Entropy , wallet . entropySource ) ,
717717 ) ;
718718 } ) ;
719719 } ) ;
720720
721721 describe ( 'toAccountGroupId' , ( ) => {
722722 it ( 'converts an account wallet id and a unique id to a group id' , ( ) => {
723- const walletId = toAccountWalletId ( AccountWalletCategory . Keyring , 'test' ) ;
723+ const walletId = toAccountWalletId ( AccountWalletType . Keyring , 'test' ) ;
724724 const groupId = toAccountGroupId ( walletId , 'test' ) ;
725725
726726 expect ( groupId . startsWith ( walletId ) ) . toBe ( true ) ;
@@ -729,7 +729,7 @@ describe('index', () => {
729729
730730 describe ( 'toDefaultAccountGroupId' , ( ) => {
731731 it ( 'converts an account wallet id and to the default group id' , ( ) => {
732- const walletId = toAccountWalletId ( AccountWalletCategory . Keyring , 'test' ) ;
732+ const walletId = toAccountWalletId ( AccountWalletType . Keyring , 'test' ) ;
733733 const groupId = toDefaultAccountGroupId ( walletId ) ;
734734
735735 expect ( groupId . startsWith ( walletId ) ) . toBe ( true ) ;
@@ -738,7 +738,7 @@ describe('index', () => {
738738
739739 describe ( 'getGroupIndexFromMultichainAccountId' , ( ) => {
740740 it ( 'throws if it cannot extract group index' , ( ) => {
741- const walletId = toAccountWalletId ( AccountWalletCategory . Keyring , 'test' ) ;
741+ const walletId = toAccountWalletId ( AccountWalletType . Keyring , 'test' ) ;
742742 const groupId = toAccountGroupId ( walletId , 'test' ) ;
743743
744744 expect ( ( ) =>
0 commit comments