labeleven-dev / bettercallsol

The missing Solana client
https://bettercallsol.dev
Apache License 2.0
50 stars 6 forks source link

Convert instruction to Anchor #93

Closed sohrab- closed 1 year ago

sohrab- commented 2 years ago

If the target program is an Anchor program (or maybe even when that's not advertised), give the user the option to try to convert an instruction to Anchor (basically the opposite of https://github.com/labeleven-dev/bettercallsol/issues/36).

This should be done if only it results in a valid Anchor instruction, without loss of data. Otherwise, just toast an error and do not convert.

sohrab- commented 1 year ago

Implemented as part of the last batch of changes