Skip to content

Commit

Permalink
chore: tweaked examples to run without errors (#24)
Browse files Browse the repository at this point in the history
* chore: changed to running exmaples

* chore: cleanup
  • Loading branch information
johnquinnvictaboada authored Sep 5, 2024
1 parent 13c0d72 commit e7ede3a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pages/nodejs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ async function followTipExample() {
]);

for await (const event of tip) {
console.log(event.block.header.slot);
console.log(event);
}
}

Expand Down Expand Up @@ -127,7 +127,7 @@ async function searchUtxosByAddressExample() {
);

utxos.forEach((utxo) => {
console.log(utxo.parsedValued?.script);
console.log(utxo);
});
}

Expand All @@ -151,7 +151,7 @@ async function submitTxExample() {
}
});

const txSample = "/* Tx cborHex */";
const txSample = "84a300d90102818258203dc5d9977e7b3d51acaea81031d2f461404536b2828549b73876a5980295f81b00018282581d60916c769efc6e2a3339594818a1d0c3998c29e3a6303d8711de8567591a004c4b4082581d60916c769efc6e2a3339594818a1d0c3998c29e3a6303d8711de8567591b0000000253bcffb3021a0002990da100d9010281825820526fa19e3694cda4f3c0d2fb2d2bb8768925eccc49a89d5f12b1972644ac769858403d6d6599193b17e67827cd9f48aaf35ac762c6fb0c5402c52724f307b69ff96f3f7e6c3fb107670c28679c148bf510f479c01a34b9d95d0dbb7e4ff6f3cb560af5f6";
const txHash = await submitClient.submitTx(Buffer.from(txSample, "hex"));

const txHashHex = Buffer.from(txHash).toString("hex");
Expand Down

0 comments on commit e7ede3a

Please sign in to comment.