solana-pay icon indicating copy to clipboard operation
solana-pay copied to clipboard

feat(validateTransfer): optional amount field & overloading of `validateTransfer` that returns amount

Open melonges opened this issue 10 months ago • 0 comments

  1. According to the specification amount is optional so validation of payment for an unknown amount will be useful.

  2. However, wants to know the amount of transfer. In our case to avoid repeating actions that already happen in validateTransfer has been created the overload that returns tuple where the second part will be amount.

melonges avatar Apr 13 '24 19:04 melonges