Skip to content

[bug]: transactionType value in the QueryAssetRatesRequest is not defined #1930

@jcbrand

Description

@jcbrand

Background

When creating an asset invoice, the transactionType value in the QueryAssetRatesRequest is not defined.
Instead, it should be set to zero. I suspect there might be a bug where it's not included because its value is not truthy.

Your environment

litd@bob:/$ tapcli getinfo
{
    "version": "0.7.0-alpha.rc2 commit=v0.7.0-rc2",
    "lnd_version": "0.20.0-beta.rc2",
    "network": "regtest",
    "lnd_identity_pubkey": "035586174e8f629f30a3055179c95c2dd689155ca22f7dde0d65de182bd4c992dc",
    "node_alias": "bob",
    "block_height": 150,
    "block_hash": "149c391c0a32baa01a4d8be7bd69af4af11b8d6e4a90d5ec87eceae7ef7ab799",
    "sync_to_chain": false
}
litd@bob:/$ uname -mrsv   
Linux 6.8.0-90-generic #91-Ubuntu SMP PREEMPT_DYNAMIC Tue Nov 18 14:14:30 UTC 2025 x86_64

Steps to reproduce

Create an invoice for which you want to be paid in a Taproot Asset.

Inside the Price Oracle, where QueryAssetRates is called, inspect the request object and notice that transactionType is not included in the request.

Expected behavior

The value should be zero (for an asset SALE PURCHASE).

Actual behavior

No value is set.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Status

✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions