You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to test using the transfer-fee extension in conjunction with the transfer-hook extension. The transfer-hook is the provided example program given in this repository. The transfer hook extra account metas account is initialized but empty. I am running this command:
spl-token transfer --expected-fee <EXPECTED_FEE><TOKEN_MINT_ADDRESS><TOKEN_AMOUNT><RECIPIENT_WALLET_ADDRESS>
It fails with error: Program TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb failed: custom program error: 0x7dc8348c My suspicion is that TransferCheckedWithFee is not correctly resolving the extra account metas.
I have already confirmed that this same transfer-hook program works and successfully transfers a token with only the transfer-hook extension.
Solution: Fix TransferCheckedWithFee to correctly resolve the required extra account metas.
The text was updated successfully, but these errors were encountered:
It looks like we'll need to do a few things to fix this properly.
in token-2022, add an offchain helper (and probably an onchain helper while we're at it) which also takes in the expected fee, something like create_transfer_checked_with_fee_instruction_with_extra_metas, which could resolve to some common helper function with
I am trying to test using the transfer-fee extension in conjunction with the transfer-hook extension. The transfer-hook is the provided example program given in this repository. The transfer hook extra account metas account is initialized but empty. I am running this command:
It fails with error:
Program TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb failed: custom program error: 0x7dc8348c
My suspicion is that TransferCheckedWithFee is not correctly resolving the extra account metas.I have already confirmed that this same transfer-hook program works and successfully transfers a token with only the transfer-hook extension.
Solution: Fix TransferCheckedWithFee to correctly resolve the required extra account metas.
The text was updated successfully, but these errors were encountered: