Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

melonges
Copy link

  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.

…ateTransfer` that returns amount

1.According to the specification [amount is optional](https://github.com/solana-labs/solana-pay/blob/master/SPEC.md#amount), 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 melonges force-pushed the validateTransfer-feat branch from 487a72c to 83276f9 Compare April 14, 2024 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant