@miden-sdk/miden-sdk 0.13.0-next.1 → 0.13.0-next.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/{Cargo-15e14c5a.js → Cargo-c25ff7e6.js} +327 -78
- package/dist/Cargo-c25ff7e6.js.map +1 -0
- package/dist/assets/miden_client_web.wasm +0 -0
- package/dist/crates/miden_client_web.d.ts +54 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.js +43 -11
- package/dist/index.js.map +1 -1
- package/dist/wasm.js +1 -1
- package/dist/workers/{Cargo-15e14c5a-15e14c5a.js → Cargo-c25ff7e6-c25ff7e6.js} +327 -78
- package/dist/workers/Cargo-c25ff7e6-c25ff7e6.js.map +1 -0
- package/dist/workers/assets/miden_client_web.wasm +0 -0
- package/dist/workers/web-client-methods-worker.js +82 -3
- package/dist/workers/web-client-methods-worker.js.map +1 -1
- package/package.json +1 -1
- package/dist/Cargo-15e14c5a.js.map +0 -1
- package/dist/workers/Cargo-15e14c5a-15e14c5a.js.map +0 -1
package/README.md
CHANGED
|
@@ -164,11 +164,11 @@ await webClient.syncState();
|
|
|
164
164
|
|
|
165
165
|
// Query the client for consumable notes, and retrieve the id of the new note to be consumed
|
|
166
166
|
let consumableNotes = await webClient.getConsumableNotes(account);
|
|
167
|
-
const
|
|
167
|
+
const noteToConsume = consumableNotes[0].inputNoteRecord().toNote();
|
|
168
168
|
|
|
169
169
|
// Create a consume transaction request object
|
|
170
170
|
const consumeTransactionRequest = webClient.newConsumeTransactionRequest([
|
|
171
|
-
|
|
171
|
+
noteToConsume,
|
|
172
172
|
]);
|
|
173
173
|
|
|
174
174
|
// Execute, prove, submit, and apply the transaction in one step
|