stellar / rs-soroban-env

Rust environment for Soroban contracts.
Apache License 2.0
59 stars 40 forks source link

Bug 1283 asset code rendering #1336

Closed graydon closed 6 months ago

graydon commented 6 months ago

Fixes #1283 by reusing the rendered asset code prefix of metadata.name for metadata.symbol

Unfortunately creates a new host object during SAC init, which requires re-observing basically all the SAC tests.

graydon commented 6 months ago

(Note the other option -- trimming asset_info.asset_code and re-padding it when converting to XDR -- would probably cause a little less churn in the testsuite due to not having to make a new object; but it would still perturb a bit due to the hash of storage and the host object repertoire changing. Not sure if it matters, but I'm willing to try that variant too?)