Skip to content

Don't autorevoke the bidder token account#3

Draft
jnwng wants to merge 1 commit intomasterfrom
jw/revoke-instruction
Draft

Don't autorevoke the bidder token account#3
jnwng wants to merge 1 commit intomasterfrom
jw/revoke-instruction

Conversation

@jnwng
Copy link
Owner

@jnwng jnwng commented Jan 21, 2022

Description

when interacting with a fairly stock auction created through the Metaplex UI, one operation consistently fails: placing bids. here's a transaction that fails to place a bid. the one instruction that fails is a "RevokeInstruction" that throws an error about an UninitializedAccount...

digging deeper, this RevokeInstruction is a "cleanup instruction" that is sent along with the approve instruction, with the tokenAccount parameter. as of metaplex-foundation#1557, though, the tokenAccount here is a PDA instead of a user-created account.

this is where things get slightly out of my wheelhouse — my first instinct is that it is not possible to revoke against a PDA, hence the fix here which skips the revocation instruction entirely (fwiw, after doing that, all the operations including placing a bid / withdrawing items work as expected). OTOH, it is plausible that there's something missing in the bidder pot initialization process, too, which could also cause the revocation failure. i am unsure!

@jnwng jnwng force-pushed the jw/revoke-instruction branch from d7a05a2 to 840c1f0 Compare January 21, 2022 15:51
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.

1 participant