gagliardetto / anchor-go

Generate Go clients from anchor IDLs for Solana blockchain programs
MIT License
153 stars 40 forks source link

Method issue when includes 0-9 #4

Closed evulse closed 2 years ago

evulse commented 2 years ago

If a method ends in a number "doSomething2" then the AnchorTypeIDEncoding is wrong as it treats it as do_something_2 instead of the required do_something2

I only needed to generate once so I didn't really solve this correctly as it's across multiple repos

https://github.com/gagliardetto/anchor-go/pull/3

gagliardetto commented 2 years ago

Fixed in https://github.com/gagliardetto/anchor-go/pull/5/files

gagliardetto commented 2 years ago

Fixed by https://github.com/gagliardetto/anchor-go/pull/5