From eebbfc2d2381cdbd94cb8dd3c304c1e7fca70d1a Mon Sep 17 00:00:00 2001 From: jonathanlei Date: Tue, 24 Jan 2023 18:03:41 -0800 Subject: [PATCH] add memos to tutorials --- assets/js/faucet.js | 2 +- assets/js/interactive-tutorial.js | 7 ++++++- content/tutorials/manage-account-settings/use-tickets.md | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/assets/js/faucet.js b/assets/js/faucet.js index f36b06482a..e95e4a3f8c 100644 --- a/assets/js/faucet.js +++ b/assets/js/faucet.js @@ -56,7 +56,7 @@ function TestNetCredentials(url, altnet_name, ws_url) { destination: test_wallet.address, memos: [ { - data: xrpl.convertStringToHex("xrpl.org-faucet"), + data: "xrpl.org-faucet", }, ], }), diff --git a/assets/js/interactive-tutorial.js b/assets/js/interactive-tutorial.js index 83af4494cc..e25886e632 100644 --- a/assets/js/interactive-tutorial.js +++ b/assets/js/interactive-tutorial.js @@ -271,10 +271,15 @@ async function call_faucet(faucet_url, destination) { if (typeof destination != "undefined") { body["destination"] = destination } + body["memos"] = [ + { + data: "xrpl.org-tutorials", + }, + ] const response = await fetch(faucet_url, { method: 'POST', headers: { - "Content-Type": "application/json" + "Content-Type": "application/json; charset=utf-8" }, body: JSON.stringify(body) }) diff --git a/content/tutorials/manage-account-settings/use-tickets.md b/content/tutorials/manage-account-settings/use-tickets.md index ab1c8ca03b..c0bcbbcc67 100644 --- a/content/tutorials/manage-account-settings/use-tickets.md +++ b/content/tutorials/manage-account-settings/use-tickets.md @@ -16,7 +16,7 @@ labels: -{% set use_network = "Devnet" %} +{% set use_network = "Testnet" %} This page provides JavaScript examples that use the [xrpl.js](https://js.xrpl.org/) library. See [Get Started Using JavaScript](get-started-using-javascript.html) for setup instructions.