@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 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 noteIdToConsume = consumableNotes[0].inputNoteRecord().id();
167
+ const noteToConsume = consumableNotes[0].inputNoteRecord().toNote();
168
168
 
169
169
  // Create a consume transaction request object
170
170
  const consumeTransactionRequest = webClient.newConsumeTransactionRequest([
171
- noteIdToConsume,
171
+ noteToConsume,
172
172
  ]);
173
173
 
174
174
  // Execute, prove, submit, and apply the transaction in one step