Repository navigation
v17.2.1
v17.2.1
Fixed
Asset.compare()orders two assets with the same code by their issuers' key bytes, as stellar-core does, instead of by theG…strkey text. The two orders can differ, sogetLiquidityPoolId()andnew LiquidityPoolAsset()rejected some valid asset pairs as out of order (#1766).scvSortedMap()andnativeToScVal()now sort map keys in the order the Soroban host requires: by ScVal type, then by value. They previously compared the keys' native string forms, so address, bytes, and mixed-type keys could come out in an order the host rejects. A plain object's keys are now sorted after conversion, so{ 10: …, 9: … }withu32keys becomes[9, 10]. Maps that mix key types change order:scvStringkeys now come beforescvSymbolkeys, whatever their names (#1766).
Full Changelog: v17.2.0...v17.2.1