-
Notifications
You must be signed in to change notification settings - Fork 12
Closed
Labels
BugThis is an item that causes unwanted behaviorThis is an item that causes unwanted behaviorTriageThis item needs to be prioritizeThis item needs to be prioritize
Description
Describe the bug
Anchor instructions named something_number where "number" is an integer fail from the client side with "Fallback instructions are not supported" as it derives the discriminator incorrectly.
To Reproduce
Name an instruction instruction_1 on the CIDL and try to call it.
Extension (mark with an X the extension):
- Solana Native [ ]
- Solana Anchor [x]
Solution
Match /_([0-9])*/ and replace by $(1). Basically, remove the last underscore if the instruction name finishes with _number.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
BugThis is an item that causes unwanted behaviorThis is an item that causes unwanted behaviorTriageThis item needs to be prioritizeThis item needs to be prioritize