IOTA-MAM.lib.js-PoC
IOTA-MAM.lib.js-PoC copied to clipboard
changed testnet and added fix for when no previous messages
I was getting an error when there were no previous messages found. Hard to say if this was because there were no previous messages or because the messages weren't being scanned/found.
Still getting this warning within Mam.attach(message.payload, message.address)
The first root:
ZMYUUZSLALHDLXXQGAKZSZNIDWXJEHYDIWBVRJFCOYDTXSDXMFQBODQGWLU9YEDHOIKOREDYHPXHMBAPI
thread '<unnamed>' panicked at 'called `Option::unwrap()` on a `None` value',
/checkout/src/libcore/option.rs:335:20
note: Run with `RUST_BACKTRACE=1` for a backtrace.
failed to parse: 5276648
Messages already in the stream:
Sending message: 1526098494802 visit iota.wtf - IOTA MAM client proof of concept
Root: ZMYUUZSLALHDLXXQGAKZSZNIDWXJEHYDIWBVRJFCOYDTXSDXMFQBODQGWLU9YEDHOIKOREDYHPXHMBAPI
Address: ZMYUUZSLALHDLXXQGAKZSZNIDWXJEHYDIWBVRJFCOYDTXSDXMFQBODQGWLU9YEDHOIKOREDYHPXHMBAPI
Any ideas what I'm doing wrong?