Closed jim-minter closed 3 years ago
Good catch. I missed this scenario, and initially thought it was sufficient to just sort the missing fields independently. I now collate both missing fields and struct fields together, sort them, and then encode as one. This should resolve the issue. I updated the tests also.
Thanks for diligently following up on it.
Thanks again - all looks good now.
Following #354, I think there's still a lurking issue (tested running against codec commit a4afc2bdd282794b23fb6c12de668563a3b9a0d4). With Canonical enabled, I'd expect to see root map keys sorted lexicographically, but they don't appear to be.
I would expect the two byte slices above to be equal, but they are not: