File tree 2 files changed +7
-7
lines changed
2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -43,8 +43,8 @@ import {
43
43
SetRemoteRequest ,
44
44
SetRemoteResponse ,
45
45
SignTxResponse ,
46
- UpdatePasswordRequest ,
47
- UpdatePasswordResponse ,
46
+ RotatePasswordRequest ,
47
+ RotatePasswordResponse ,
48
48
} from '@buf/gnolang_gnonative.bufbuild_es/gnonativetypes_pb' ;
49
49
import { GnoNativeService } from '@buf/gnolang_gnonative.connectrpc_es/rpc_connect' ;
50
50
import { PromiseClient } from '@connectrpc/connect' ;
@@ -272,12 +272,12 @@ export class GnoNativeApi implements GnoKeyApi, GoBridgeInterface {
272
272
return response ;
273
273
}
274
274
275
- async updatePassword (
275
+ async rotatePassword (
276
276
newPassword : string ,
277
277
addresses : Uint8Array [ ] ,
278
- ) : Promise < UpdatePasswordResponse > {
278
+ ) : Promise < RotatePasswordResponse > {
279
279
const client = this . #getClient( ) ;
280
- const response = client . updatePassword ( new UpdatePasswordRequest ( { newPassword, addresses } ) ) ;
280
+ const response = client . rotatePassword ( new RotatePasswordRequest ( { newPassword, addresses } ) ) ;
281
281
return response ;
282
282
}
283
283
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import {
10
10
SetChainIDResponse ,
11
11
SetPasswordResponse ,
12
12
SetRemoteResponse ,
13
- UpdatePasswordResponse ,
13
+ RotatePasswordResponse ,
14
14
KeyInfo ,
15
15
SignTxResponse ,
16
16
MakeTxResponse ,
@@ -50,7 +50,7 @@ export interface GnoKeyApi {
50
50
getKeyInfoByNameOrAddress : ( nameOrBech32 : string ) => Promise < KeyInfo | undefined > ;
51
51
activateAccount : ( nameOrBech32 : string ) => Promise < ActivateAccountResponse > ;
52
52
setPassword : ( password : string , address : Uint8Array ) => Promise < SetPasswordResponse > ;
53
- updatePassword : ( password : string , addresses : Uint8Array [ ] ) => Promise < UpdatePasswordResponse > ;
53
+ rotatePassword : ( password : string , addresses : Uint8Array [ ] ) => Promise < RotatePasswordResponse > ;
54
54
getActivatedAccount : ( ) => Promise < GetActivatedAccountResponse > ;
55
55
queryAccount : ( address : Uint8Array ) => Promise < QueryAccountResponse > ;
56
56
deleteAccount : (
You can’t perform that action at this time.
0 commit comments