Skip to content

Commit

Permalink
return the value as async
Browse files Browse the repository at this point in the history
  • Loading branch information
DougAnderson444 committed Mar 2, 2024
1 parent c68007b commit c8431a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/svelte-app/src/lib/examples/Wallet.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@
];
// load the import handles into the Wasm component and get the ES module returned
wurbo = new Wurbo({ arrayBuffer: wasmBytes, importables }, (payload) => {
wurbo = new Wurbo({ arrayBuffer: wasmBytes, importables }, async (payload) => {
// Relay emitted commands from the Wasm component to PiperNet
// console.log('Command emitted: ', { payload });
try {
pipernet.command(payload);
return await pipernet.command(payload);
} catch (error) {
// it's ok to fail silently, not all messages are commands
}
Expand Down

0 comments on commit c8431a7

Please sign in to comment.