openbook-dex / openbook-v2

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

Do not allow penalty payer to be null in settle funds in ts client #222

Closed brittcyr closed 10 months ago

brittcyr commented 10 months ago

The program requires it as a signer. https://github.com/openbook-dex/openbook-v2/blob/master/programs/openbook-v2/src/accounts_ix/settle_funds.rs#L11

The default key that the client otherwise uses does not work because the web3.js client fails signature validation in preflight.

binyebarwe commented 10 months ago

@brittcyr i've pushed a new version of the client with these changes. @openbook-dex/openbook-v2@0.1.10