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.
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.