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

Improve Error Handling on Transactions Requiring Multiple Payers #3242

Open
0xhank opened this issue Sep 11, 2024 · 1 comment
Open

Improve Error Handling on Transactions Requiring Multiple Payers #3242

0xhank opened this issue Sep 11, 2024 · 1 comment

Comments

@0xhank
Copy link

0xhank commented Sep 11, 2024

I (a beginner in SVM and anchor) ran into issues debugging a transaction requiring multiple fee payers. Having verbose error messages would have helped me debug this issue far quicker.

When I didn't manually set the feePayer in the transaction object, I received an unclear error message:
image

the following line was required before sending the transaction:

transaction.sign(keypairs.tokenMintAccount);
@acheroncrypto
Copy link
Collaborator

The error you shared doesn't seem to be coming from Anchor. You can avoid manually setting the fee payer by using program.provider.send.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants