Skip to content

Conversation

@LeeSmet
Copy link
Contributor

@LeeSmet LeeSmet commented Apr 16, 2025

Provide the wallet master address instead of the ATA directly. The expected ATA is derived from the master address provided during processing.

To remain backwars compatible, reshuffle the check to see if we've already minted to the beginning of the mint function (and mint sign function in cosigners), and add a function to check if this tx has already been refunded after that. Especially the latter is important since previously refunded txes would now be valid, causing the check to see if the refund already happened to not happen as that lives specifically in the refund handler, which would not be invoked in this case.

Provide the wallet master address instead of the ATA directly. The
expected ATA is derived from the master address provided during
processing.

To remain backwars compatible, reshuffle the check to see if we've
already minted to the beginning of the mint function (and mint sign
function in cosigners), and add a function to check if this tx has
already been refunded after that. Especially the latter is important
since previously refunded txes would now be valid, causing the check to
see if the refund already happened to not happen as that lives
specifically in the refund handler, which would not be invoked in this
case.

Signed-off-by: Lee Smet <[email protected]>
@LeeSmet LeeSmet force-pushed the solana_master_address branch from 90313b5 to 1eca476 Compare May 28, 2025 18:47
LeeSmet added 3 commits June 4, 2025 15:57
The exposed call assumes usage of the regular token program, while we
use Token2022

Signed-off-by: Lee Smet <[email protected]>
In the mint tx and the request the ATA itself is passed, the stellar tx
obviously contains the master. This allows us to also check if the
derivation was done properly.

Signed-off-by: Lee Smet <[email protected]>
@LeeSmet LeeSmet merged commit 0696125 into main Jun 5, 2025
1 check passed
@LeeSmet LeeSmet deleted the solana_master_address branch June 5, 2025 11:59
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.

2 participants