Closed beeman closed 1 year ago
CI is running/has finished running commands for commit 998c291d91049158ba16d6133687186a5939f08e. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.
📂 See all runs for this branch
Sent with 💌 from NxCloud.
This PR changes how
makeTransfer
fetches the addresses of the token accounts for both the owner and destination.Previously, it used
getAssociatedTokenAddress
combined with themint
andpublic key
, but this does not work with token accounts that are created using and older method (eg. Agora wallets).In this setup, we fetch the account info for both the owner and destination and it will give back and array of token accounts, regardless of how they were created.
The logic goes like this:
senderCreate
is not set, it fails.senderCreate
is set, it will usegetAssociatedTokenAddress
to derive the address.Part of #507.