openbook-dex / openbook-v2

openbook-v2 monorepo, contains solana program and ts client
Other
164 stars 94 forks source link

update market account struct name to match idl value #258

Closed Y0h4n3s closed 6 months ago

Y0h4n3s commented 7 months ago

This fixes an error when decoding a v2 market account due to a mismatch between the struct name defined in the idl and the provided value

mschneider commented 6 months ago

thank you! this method is btw deprecated, have a look for the recent addition to the client, specifically the Market class https://github.com/openbook-dex/openbook-v2/blob/master/ts/client/src/test/market.ts