mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-23 13:15:49 +00:00
add memos to tutorials
This commit is contained in:
@@ -56,7 +56,7 @@ function TestNetCredentials(url, altnet_name, ws_url) {
|
|||||||
destination: test_wallet.address,
|
destination: test_wallet.address,
|
||||||
memos: [
|
memos: [
|
||||||
{
|
{
|
||||||
data: xrpl.convertStringToHex("xrpl.org-faucet"),
|
data: "xrpl.org-faucet",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
}),
|
}),
|
||||||
|
|||||||
@@ -271,10 +271,15 @@ async function call_faucet(faucet_url, destination) {
|
|||||||
if (typeof destination != "undefined") {
|
if (typeof destination != "undefined") {
|
||||||
body["destination"] = destination
|
body["destination"] = destination
|
||||||
}
|
}
|
||||||
|
body["memos"] = [
|
||||||
|
{
|
||||||
|
data: "xrpl.org-tutorials",
|
||||||
|
},
|
||||||
|
]
|
||||||
const response = await fetch(faucet_url, {
|
const response = await fetch(faucet_url, {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: {
|
headers: {
|
||||||
"Content-Type": "application/json"
|
"Content-Type": "application/json; charset=utf-8"
|
||||||
},
|
},
|
||||||
body: JSON.stringify(body)
|
body: JSON.stringify(body)
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ labels:
|
|||||||
|
|
||||||
<!-- Source for this specific tutorial's interactive bits: -->
|
<!-- Source for this specific tutorial's interactive bits: -->
|
||||||
<script type="application/javascript" src="assets/js/tutorials/use-tickets.js"></script>
|
<script type="application/javascript" src="assets/js/tutorials/use-tickets.js"></script>
|
||||||
{% set use_network = "Devnet" %}<!--TODO: change to Testnet eventually. NOTE, Testnet is a few days behind Mainnet in getting the amendment one enabled -->
|
{% 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.
|
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.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user