Bonfida / agnostic-orderbook

Apache License 2.0
79 stars 33 forks source link

Incorrect market account space gives weird error #73

Closed Henry-E closed 2 years ago

Henry-E commented 2 years ago

The correct amount of bytes is

But if you pass the wrong number of bytes it gives an incomprehensible error. Program log: panicked at 'from_bytes_mut>SizeMismatch', /root/.cargo/registry/src/github.com-1ecc6299db9ec823/bytemuck-1.10.0/src/internal.rs:30:3

ellttBen commented 2 years ago

Solved by PR #86.