Skip to content

Commit ecf3cfd

Browse files
committed
Add temporary compat. code for asset_tag->asset_id addressee rename
fixes dependencies between green_cli and newer gdks until the next release.
1 parent 2a0b9c9 commit ecf3cfd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/ga_tx.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -551,6 +551,10 @@ namespace sdk {
551551
bool addressees_have_assets = json_get_value(result, "addressees_have_assets", false);
552552
if (num_addressees) {
553553
for (auto& addressee : *addressees_p) {
554+
// FIXME: Remove this renaming when the wallets have upgraded to use
555+
// asset_id in their addressees.
556+
json_rename_key(addressee, "asset_tag", "asset_id");
557+
554558
nlohmann::json uri_params
555559
= parse_bitcoin_uri(addressee.value("address", ""), net_params.bip21_prefix());
556560
if (net_params.is_liquid() && uri_params.is_object()) {

0 commit comments

Comments
 (0)