We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
examples/01.createChannel.js fs.writeFileSync('unsigned.refund.log', consumer.setupRefund().toJSON()); write [object Object]
fs.writeFileSync('unsigned.refund.log', consumer.setupRefund().toJSON());
so that is not working examples/02.signRefund.js var refund = JSON.parse(String(fs.readFileSync('unsigned.refund.log')));
The text was updated successfully, but these errors were encountered:
The behavior or toJSON() has recently changed in the latest Bitcore release (see release notes), and JSON.stringify will return a string:
toJSON()
JSON.stringify
JSON.stringify(consumer.setupRefund())
The examples need to be updated.
Sorry, something went wrong.
Updated in: #37
No branches or pull requests
examples/01.createChannel.js
fs.writeFileSync('unsigned.refund.log', consumer.setupRefund().toJSON());
write [object Object]
so that is not working
examples/02.signRefund.js
var refund = JSON.parse(String(fs.readFileSync('unsigned.refund.log')));
The text was updated successfully, but these errors were encountered: