mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-20 11:45:50 +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,
|
||||
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") {
|
||||
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)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user