helium / helium-wallet-rs

Rust implementation of a helium wallet CLI
Apache License 2.0
258 stars 114 forks source link

Fix asset to hotspot conversion #373

Closed madninja closed 4 months ago

madninja commented 4 months ago

Asset convertion to a Hotspot was relying on a metadata field that may take over 24 hours to get populated, and is only to be used for non critical purposes.

This PR introduces a KeyToAsset cache that is used to cache asset accounts based on the asset key. The cache is then used for Asset->Hotspot conversion to get the entity key (back)

Fixes #366

Both bugs reported in #366 are fixed by this PR. It fixes metadata issues and update transaction construction