diff --git a/tapdb/assets_store.go b/tapdb/assets_store.go index cd698d75c..869bf2fef 100644 --- a/tapdb/assets_store.go +++ b/tapdb/assets_store.go @@ -874,7 +874,6 @@ func (a *AssetStore) QueryBalancesByAsset(ctx context.Context, copy(assetID[:], assetBalance.AssetID[:]) assetIDBalance := AssetBalance{ - Version: assetBalance.Version, Balance: uint64(assetBalance.Balance), Tag: assetBalance.AssetTag, Type: asset.Type(assetBalance.AssetType), diff --git a/tapdb/sqlc/assets.sql.go b/tapdb/sqlc/assets.sql.go index 7fc8eb243..6605a23ff 100644 --- a/tapdb/sqlc/assets.sql.go +++ b/tapdb/sqlc/assets.sql.go @@ -1822,7 +1822,7 @@ LEFT JOIN key_group_info_view ON assets.genesis_id = key_group_info_view.gen_asset_id WHERE spent = FALSE GROUP BY assets.genesis_id, genesis_info_view.asset_id, - version, genesis_info_view.asset_tag, genesis_info_view.meta_hash, + genesis_info_view.asset_tag, genesis_info_view.meta_hash, genesis_info_view.asset_type, genesis_info_view.output_index, genesis_info_view.prev_out ` diff --git a/tapdb/sqlc/queries/assets.sql b/tapdb/sqlc/queries/assets.sql index d81d879aa..4cee5a1bc 100644 --- a/tapdb/sqlc/queries/assets.sql +++ b/tapdb/sqlc/queries/assets.sql @@ -293,7 +293,7 @@ LEFT JOIN key_group_info_view ON assets.genesis_id = key_group_info_view.gen_asset_id WHERE spent = FALSE GROUP BY assets.genesis_id, genesis_info_view.asset_id, - version, genesis_info_view.asset_tag, genesis_info_view.meta_hash, + genesis_info_view.asset_tag, genesis_info_view.meta_hash, genesis_info_view.asset_type, genesis_info_view.output_index, genesis_info_view.prev_out;