Commit 7694eac 1 parent 9bacb2e commit 7694eac Copy full SHA for 7694eac
File tree 2 files changed +4
-4
lines changed
bindings/wasm/src/credential/revocation/status_list_2021
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -127,7 +127,7 @@ impl WasmStatusList2021Credential {
127
127
pub fn set_credential_status (
128
128
& mut self ,
129
129
credential : & mut WasmCredential ,
130
- index : usize ,
130
+ index : & str ,
131
131
revoked_or_suspended : bool ,
132
132
) -> Result < WasmStatusList2021Entry > {
133
133
let entry = self
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ impl WasmStatusList2021Entry {
21
21
pub fn new (
22
22
status_list : & str ,
23
23
purpose : WasmStatusPurpose ,
24
- index : usize ,
24
+ index : & str ,
25
25
id : Option < String > ,
26
26
) -> Result < WasmStatusList2021Entry > {
27
27
let status_list = Url :: parse ( status_list) . map_err ( |e| JsError :: new ( & e. to_string ( ) ) ) ?;
@@ -47,8 +47,8 @@ impl WasmStatusList2021Entry {
47
47
48
48
/// Returns the index of this entry.
49
49
#[ wasm_bindgen]
50
- pub fn index ( & self ) -> usize {
51
- self . 0 . index ( )
50
+ pub fn index ( & self ) -> String {
51
+ self . 0 . index ( ) . to_string ( )
52
52
}
53
53
54
54
/// Returns the referenced {@link StatusList2021Credential}'s url.
You can’t perform that action at this time.
0 commit comments