project-serum / serum-ts

Project Serum TypeScript monorepo
https://projectserum.com
Apache License 2.0
270 stars 245 forks source link

Don't create open orders account if it already exists. #237

Open partiallysorted opened 2 years ago

partiallysorted commented 2 years ago

When testing with the serum-ts library I noticed that if I had already created the open orders account, but not yet placed and order, the library would attempt to create a new account. I believe that the library should use the supplied open orders account if it exists instead of creating a new account.