msg.add<uint16_t>(page);
msg.AddByte((storeHistory.size() > entriesPerPage) ? 0x01 : 0x00);
to
msg.add<uint32_t>(page);
msg.add<uint32_t>((storeHistory.size() > entriesPerPage) ? 0x01 : 0x00);
and
msg.add<uint32_t>(offer.getPrice());
to
msg.add<uint32_t>(offer.getPrice());
msg.AddByte(0);