@@ -64,52 +64,4 @@ describe("AuthExtension", () => {
6464 tmClient . disconnect ( ) ;
6565 } ) ;
6666 } ) ;
67-
68- describe ( "verified" , ( ) => {
69- describe ( "account" , ( ) => {
70- it ( "works for unused account" , async ( ) => {
71- pendingWithoutSimapp ( ) ;
72- const [ client , tmClient ] = await makeClientWithAuth ( simapp . tendermintUrl ) ;
73- const account = await client . auth . verified . account ( unused . address ) ;
74- assert ( account ) ;
75-
76- expect ( account . typeUrl ) . toEqual ( "/cosmos.auth.v1beta1.BaseAccount" ) ;
77- expect ( BaseAccount . decode ( account . value ) ) . toEqual ( {
78- address : unused . address ,
79- // pubKey not set
80- accountNumber : Long . fromNumber ( unused . accountNumber , true ) ,
81- sequence : Long . fromNumber ( 0 , true ) ,
82- } ) ;
83-
84- tmClient . disconnect ( ) ;
85- } ) ;
86-
87- it ( "works for account with pubkey and non-zero sequence" , async ( ) => {
88- pendingWithoutSimapp ( ) ;
89- const [ client , tmClient ] = await makeClientWithAuth ( simapp . tendermintUrl ) ;
90- const account = await client . auth . verified . account ( validator . delegatorAddress ) ;
91- assert ( account ) ;
92-
93- expect ( account . typeUrl ) . toEqual ( "/cosmos.auth.v1beta1.BaseAccount" ) ;
94- expect ( BaseAccount . decode ( account . value ) ) . toEqual ( {
95- address : validator . delegatorAddress ,
96- pubKey : Any . fromPartial ( encodePubkey ( validator . pubkey ) ) ,
97- accountNumber : Long . fromNumber ( 0 , true ) ,
98- sequence : Long . fromNumber ( validator . sequence , true ) ,
99- } ) ;
100-
101- tmClient . disconnect ( ) ;
102- } ) ;
103-
104- it ( "returns null for non-existent address" , async ( ) => {
105- pendingWithoutSimapp ( ) ;
106- const [ client , tmClient ] = await makeClientWithAuth ( simapp . tendermintUrl ) ;
107- const account = await client . auth . verified . account ( nonExistentAddress ) ;
108-
109- expect ( account ) . toBeNull ( ) ;
110-
111- tmClient . disconnect ( ) ;
112- } ) ;
113- } ) ;
114- } ) ;
11567} ) ;
0 commit comments