Skip to content

"RuntimeError: unreachable" when creating a new TxOut #42

@vladikus10

Description

@vladikus10

I'm trying to build a transaction with the Tx object and when I try to add a new output:

let tx = Tx.create();
tx = Tx.addOutput(tx, Tx.newTxOut('Ae2tdPwUPEZ8d5Q2MEbU7tfGL9pF73A7zDb4ippdWPmKWseDPrh7GTYBvpo', 10));

I receive this error:

UnhandledPromiseRejectionWarning: RuntimeError: unreachable
    at wasm-function[197]:3358
    at wasm-function[250]:258
    at wasm-function[362]:153
    at wasm-function[428]:136
    at wasm-function[22]:833
    at exports.newTxOut (/home/user/NodeJS/project/node_modules/rust-cardano-crypto/dist/index.js:11711:26)
    at Object.args [as newTxOut] (/home/user/NodeJS/project/node_modules/rust-cardano-crypto/dist/index.js:2313:84)

I'm using Node 8.14.0 and rust-cardano-crypto ver 0.2.0
I also tried manually building from this repository with the same result.

Input seem to work just fine, the error is thrown only when trying to add a new output.

Metadata

Metadata

Assignees

Labels

questionFurther information is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions