Skip to content

Commit

Permalink
feat: show tari script properly in tari_explorer (#4321)
Browse files Browse the repository at this point in the history
Description
---
Show tari script instruction by instruction.

How Has This Been Tested?
---
Manually. But just on one-sided and stealth addresses.
  • Loading branch information
Cifko authored Jul 20, 2022
1 parent ddb8453 commit 4a1b50e
Show file tree
Hide file tree
Showing 6 changed files with 458 additions and 1,515 deletions.
7 changes: 4 additions & 3 deletions applications/tari_explorer/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@ var assetsRouter = require("./routes/assets");
var validatorRouter = require("./routes/validator");

var hbs = require("hbs");
hbs.registerHelper("hex", function (buffer) {
return buffer ? Buffer.from(buffer).toString("hex") : "";
});
const [hex, script] = require("./script");
hbs.registerHelper("hex", hex);
hbs.registerHelper("script", script);

hbs.registerHelper("json", function (obj) {
return Buffer.from(JSON.stringify(obj)).toString("base64");
});
Expand Down
Loading

0 comments on commit 4a1b50e

Please sign in to comment.