mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-23 05:05:50 +00:00
Fix tx-serialization JS sample code
This commit is contained in:
@@ -37,7 +37,11 @@ const args = parseArgs(process.argv.slice(2), {
|
||||
|
||||
function _pretty(message, color) {
|
||||
if (!args.raw) {
|
||||
console.log(color, message)
|
||||
if (color) {
|
||||
console.log(color,message)
|
||||
} else {
|
||||
console.log(message)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -60,4 +64,4 @@ if (args.json) {
|
||||
} else {
|
||||
rawJson = fs.readFileSync(args.filename, 'utf8')
|
||||
main(rawJson, args.verbose)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user