Bonfida / agnostic-orderbook

Apache License 2.0
79 stars 33 forks source link

Tests on Devnet are pointing at an outdated market #8

Closed jarry-xiao closed 3 years ago

jarry-xiao commented 3 years ago
  // Load market
  const market = await MarketState.retrieve(
    connection,
    new PublicKey("G2pbv4RtDpaygMELxbDQpWjedw4j1ujKNnEiFLsmhNUy")
  );

Throws an error because G2pbv4RtDpaygMELxbDQpWjedw4j1ujKNnEiFLsmhNUy has 161 bytes and the MarketState struct has 169 bytes (probably a new field was added)

Could we have an updated key? (In the meantime I will try to figure out how to make a market)

dr497 commented 3 years ago

Use this to create a new market https://github.com/Bonfida/dex-v3/blob/main/js/src/bindings.ts#L30