What is Nostr?
lemon
npub1hee…rsv6
2025-02-17 17:47:16
in reply to nevent1q…3rue

lemon on Nostr: I'm pretty sure it's related to my code and not the cashu-ts library When I run the ...

I'm pretty sure it's related to my code and not the cashu-ts library

When I run the cashu-ts pure typescript in terminal I have no issue minting 1 sat and generating a token

I tried to build a webpack version of cashu-ts so I could easily integrate it into my webapp

The error arises when I try to execute the sendTokens command:
const { keep, send, cashuToken } = await CashuBuddy.sendTokens(wallet, secretAmount.value, proofs, secretInput.value);

Here's the webpack code for reference:
https://github.com/happylemonprogramming/cashubuddy/blob/main/src/index.ts
Author Public Key
npub1hee433872q2gen90cqh2ypwcq9z7y5ugn23etrd2l2rrwpruss8qwmrsv6