solana-pay
solana-pay copied to clipboard
feat(validateTransfer): optional amount field & overloading of `validateTransfer` that returns amount
-
According to the specification amount is optional so validation of payment for an unknown amount will be useful.
-
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.