You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current Note class doesn't expose the inner JsNote fields, to reach those data the user has to access the inner type
The goal here is to expose the inner type fields
Spec
Fields to expose
Fields are defined in the inner type JsNote after building packages/wasm-utils/build/wasm-utils.d.ts
Getters
getHashFunction(){returnthis.note.hashFunction;}
for importing types from wasm-utils use import type {xxx} from '@webb-tools/wasm-utils EXimport type {HashFunction} from '@webb-tools/wasm-utils'
Tests
Similar to the tests we have in the note.spec.tspackages/sdk-core/src/__test__/note.spec.ts, Add a test that leverages those getters and insure that the values are correct
The text was updated successfully, but these errors were encountered:
AhmedKorim
changed the title
[TASK] Expose fields for Note inner JSNote
[TASK] Expose fields getter for Note inner JsNoteJun 16, 2022
Overview
The current
Note
class doesn't expose the innerJsNote
fields, to reach those data the user has to access the inner typeThe goal here is to expose the inner type fields
Spec
Fields to expose
Fields are defined in the inner type
JsNote
after buildingpackages/wasm-utils/build/wasm-utils.d.ts
Getters
for importing types from
wasm-utils
useimport type {xxx} from '@webb-tools/wasm-utils
EX
import type {HashFunction} from '@webb-tools/wasm-utils'
Tests
Similar to the tests we have in the
note.spec.ts
packages/sdk-core/src/__test__/note.spec.ts
, Add a test that leverages those getters and insure that the values are correctThe text was updated successfully, but these errors were encountered: