Skip to content

simulate returning questionable hashes #1177

@waalge

Description

@waalge

What Git revision are you using?

aiken v1.1.17+35e41a1

What operating system are you using, and which version?

nixos

Describe what the problem is?

I do not find it easy to debug this.

$aiken tx simulate data/fail-open.hex inputs.cbor outputs.cbor
      Parsing script context
   Simulating 4485dc3dadade277c4dbbf33f9911159b93997ee7e2fc64d0f9082911e0dc57a
        Error missing and/or unexpected validator(s) and/or redeemer(s)
      Missing 3c5f40322bb590282c62733633d72d9e4f2c4472e98f9f337075d923
              901b924225e7199fbe9c79895f233b49319fdeb980b5aafc67e0c9d2
              3c5f40322bb590282c62733633d72d9e4f2c4472e98f9f337075d923
   Unexpected db9ba61ec1fe511ce9ff7b6761b7eb92176e053560e608feed54a2cd
              4f3186960d2ca17edc867d510d97a4001e46dea28624a9365ad17aba

According to lucid-evos validatorToScriptHash, the reference scripts ought to have matching hashes.
According to cexplorer, the reference script should have matching hashes https://preview.cexplorer.io/script/3c5f40322bb590282c62733633d72d9e4f2c4472e98f9f337075d923

For some reason aiken thinks it is instead

db9ba61ec1fe511ce9ff7b6761b7eb92176e053560e608feed54a2cd

Afaics, there are no acceptance tests in which the output.cbor has a reference script, nor documentation on the syntax. That said, the error suggests the inputs are correctly parsed, and something is going wrong after that.

What should be the expected behavior?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    🪣 Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions