Open marcosh opened 4 years ago
if you use https://github.com/statebox/stbx-core-js and run the following test
let txH = `0a0022200a1e47756172616e746565642d456e7472616e63652d546f6b656e2e74657374` let Stbx = require("..") let tx = Stbx.decode(txH) console.log(tx)
you get
{ root: { message: '47756172616e746565642d456e7472616e63652d546f6b656e2e74657374' }, previous: 'z' }
on the other hand, if you use the studio service as follows:
console.log(x)
https://github.com/statebox/purescript-studio/blob/7fc06047f7a36d94ba699039199a382b8490de3a/stbx-core/src/Statebox/Core.js#L7
stbx-core
stbx-service-rest
npm run serve
curl -X POST \ http://localhost:8080/tx \ -H 'Content-Type: application/json' \ -d '{ "tx": "0a0022200a1e47756172616e746565642d456e7472616e63652d546f6b656e2e74657374" }'
you get the following printed in the console
{ root: { message: '47756172616e746565642d456e7472616e63652d546f6b656e2e74657374' } }
which is missing the previous: 'z' field
previous: 'z'
It looks like I'm using the correct version of stbx-core-js (0.0.31, see here)
stbx-core-js
if you use https://github.com/statebox/stbx-core-js and run the following test
you get
on the other hand, if you use the studio service as follows:
console.log(x)
tohttps://github.com/statebox/purescript-studio/blob/7fc06047f7a36d94ba699039199a382b8490de3a/stbx-core/src/Statebox/Core.js#L7
stbx-core
stbx-service-rest
stbx-service-rest
withnpm run serve
you get the following printed in the console
which is missing the
previous: 'z'
fieldIt looks like I'm using the correct version of
stbx-core-js
(0.0.31, see here)