Skip to content

Commit 7694eac

Browse files
committed
chore(wasm): fix wasm types
1 parent 9bacb2e commit 7694eac

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

bindings/wasm/src/credential/revocation/status_list_2021/credential.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ impl WasmStatusList2021Credential {
127127
pub fn set_credential_status(
128128
&mut self,
129129
credential: &mut WasmCredential,
130-
index: usize,
130+
index: &str,
131131
revoked_or_suspended: bool,
132132
) -> Result<WasmStatusList2021Entry> {
133133
let entry = self

bindings/wasm/src/credential/revocation/status_list_2021/entry.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ impl WasmStatusList2021Entry {
2121
pub fn new(
2222
status_list: &str,
2323
purpose: WasmStatusPurpose,
24-
index: usize,
24+
index: &str,
2525
id: Option<String>,
2626
) -> Result<WasmStatusList2021Entry> {
2727
let status_list = Url::parse(status_list).map_err(|e| JsError::new(&e.to_string()))?;
@@ -47,8 +47,8 @@ impl WasmStatusList2021Entry {
4747

4848
/// Returns the index of this entry.
4949
#[wasm_bindgen]
50-
pub fn index(&self) -> usize {
51-
self.0.index()
50+
pub fn index(&self) -> String {
51+
self.0.index().to_string()
5252
}
5353

5454
/// Returns the referenced {@link StatusList2021Credential}'s url.

0 commit comments

Comments
 (0)