Skip to content

Incorrect address is returned when the program is used on the Liquid Testnet #313

Open

Description

@KyrylR

LBTC Asset ID here:

0x6d521c38u, 0xec1ea157u, 0x34ae22b7u, 0xc4606441u, 0x2829c0d0u, 0x579f0a71u, 0x3d1c04edu, 0xe979026fu
is hardcoded, whereas the actual asset ID used on the Liquid Testnet is this one: 144c654344aa716d6f3abcc1ca90e5641e4e2a7f633bc09fe3baf64585819a49.

Therefore, this function cannot be used in development, at least when the program is intended to be used on the Liquid Testnet.

Activity

  1. apoelstra commented on Oct 26, 2025

    @apoelstra
    Collaborator

    I forgot to reply to this, but this issue is actually pretty hard to deal with. We have two bad choices:

    • Have a different set of jets for different test networks, which is logistically pretty hard and would also undermine the purpose of deploying on test networks; or
    • Have the wrong asset on Liquid Testnet, which we currently do

    I think it's fine to leave the issue open indefinitely but I don't expect a resolution.

  2. roconnor-blockstream commented on Oct 27, 2025

    @roconnor-blockstream
    Collaborator

    The way I expected this to work (but isn't implemented yet) is that a Simplicity compiler / optimizer would recognize fragments of Simplicity expressions that match existing jets and substitute in those jets automatically. So that if you have some parameter for the prime asset of the network that is set to one value for the test network and another value for the main network, when run on the main network a the optimizer would kick in and replace the long word jet specifying the assetID and replace it with the LBTC jet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions