add js tag to some code

This commit is contained in:
Manuel Araoz 2014-12-05 20:11:55 -03:00
parent 466208a8ec
commit 27ed2a6ccd

View File

@ -130,7 +130,7 @@ console.log(s.toString());
`Script` has an easy interface to parse raw scripts from the newtwork or bitcoind, `Script` has an easy interface to parse raw scripts from the newtwork or bitcoind,
and to extract useful information. and to extract useful information.
An illustrative example (for more options check the API reference) An illustrative example (for more options check the API reference)
``` ```javascript
var raw_script = new Buffer('5221022df8750480ad5b26950b25c7ba79d3e37d75f640f8e5d9bcd5b150a0f85014da2103e3818b65bcc73a7d64064106a859cc1a5a728c4345ff0b641209fba0d90de6e921021f2f6e1e50cb6a953935c3601284925decd3fd21bc445712576873fb8c6ebc1853ae', 'hex'); var raw_script = new Buffer('5221022df8750480ad5b26950b25c7ba79d3e37d75f640f8e5d9bcd5b150a0f85014da2103e3818b65bcc73a7d64064106a859cc1a5a728c4345ff0b641209fba0d90de6e921021f2f6e1e50cb6a953935c3601284925decd3fd21bc445712576873fb8c6ebc1853ae', 'hex');
var s = new Script(raw_script); var s = new Script(raw_script);
console.log(s.toString()); console.log(s.toString());