JoystreamClassic / joystream-node

Node bindings for joystream libtorrent extension
MIT License
0 stars 3 forks source link

Fail to decode contractTX #27

Closed rllola closed 7 years ago

rllola commented 7 years ago

joystream-electron is failing when try to start_downloading.

The following line seems to fail in electron :

ARGUMENTS_REQUIRE_DECODED(1, contractTx, Coin::Transaction, joystream::node::transaction::decode)
mnaamani commented 7 years ago

I think we are passing in a bcoin.Tx, the decoder expects a raw Buffer

mnaamani commented 7 years ago

@rllola you can use the .toRaw() method on the tx to get the buffer.

mnaamani commented 7 years ago

resolved