mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-29 16:15:48 +00:00
xrpl.js 2.0: remove more TODOs, cleanup set individual freeze
This commit is contained in:
@@ -22,7 +22,7 @@ async function main() {
|
||||
|
||||
// Sign and submit the AccountSet transaction to enable a global freeze -------
|
||||
console.log('Signing and submitting the transaction:', accountSetTx)
|
||||
await client.submitReliable(wallet, accountSetTx)
|
||||
await client.submitAndWait(wallet, accountSetTx)
|
||||
console.log("Finished submitting!")
|
||||
|
||||
// Checking the status of the global freeze -----------------------------------
|
||||
@@ -51,7 +51,7 @@ async function main() {
|
||||
|
||||
// Sign and submit the AccountSet transaction to enable a global freeze -------
|
||||
console.log('Signing and submitting the transaction:', accountSetTx2)
|
||||
const result = await client.submitReliable(wallet, accountSetTx2)
|
||||
const result = await client.submitAndWait(wallet, accountSetTx2)
|
||||
console.log("Finished submitting!")
|
||||
|
||||
// Checking the status of the global freeze -----------------------------------
|
||||
|
||||
@@ -22,7 +22,7 @@ async function main() {
|
||||
|
||||
// Sign and submit the AccountSet transaction to enable a global freeze -------
|
||||
console.log('Signing and submitting the transaction:', accountSetTx)
|
||||
await client.submitReliable(wallet, accountSetTx)
|
||||
await client.submitAndWait(wallet, accountSetTx)
|
||||
console.log(`Finished submitting! ${wallet.address} should be frozen now.`)
|
||||
|
||||
// Investigate ----------------------------------------------------------------
|
||||
@@ -40,7 +40,7 @@ async function main() {
|
||||
|
||||
// Sign and submit the AccountSet transaction to enable a global freeze -------
|
||||
console.log('Signing and submitting the transaction:', accountSetTx2)
|
||||
const result = await client.submitReliable(wallet, accountSetTx2)
|
||||
const result = await client.submitAndWait(wallet, accountSetTx2)
|
||||
console.log("Finished submitting!")
|
||||
|
||||
console.log("Disconnecting")
|
||||
|
||||
@@ -74,7 +74,7 @@ async function main() {
|
||||
|
||||
// Submit a TrustSet transaction to set an individual freeze ----------------------
|
||||
console.log('Submitting TrustSet tx:', trust_set)
|
||||
const result = await client.submitReliable(wallet, trust_set)
|
||||
const result = await client.submitAndWait(wallet, trust_set)
|
||||
console.log("Submitted TrustSet!")
|
||||
|
||||
// Investigate --------------------------------------------------------------------
|
||||
@@ -86,15 +86,15 @@ async function main() {
|
||||
// We're reusing our TrustSet transaction from earlier with a different flag
|
||||
trust_set.Flags = xrpl.TrustSetFlags.tfClearFreeze
|
||||
|
||||
// Submit a TrustSet transaction to set an individual freeze ----------------------
|
||||
// Submit a TrustSet transaction to clear an individual freeze --------------------
|
||||
console.log('Submitting TrustSet tx:', trust_set)
|
||||
const result2 = await client.submitReliable(wallet, trust_set)
|
||||
const result2 = await client.submitAndWait(wallet, trust_set)
|
||||
console.log("Submitted TrustSet!")
|
||||
|
||||
console.log("Finished submitting. Now disconnecting.")
|
||||
await client.disconnect()
|
||||
|
||||
//End main()
|
||||
// End main()
|
||||
}
|
||||
|
||||
main().catch(console.error)
|
||||
|
||||
@@ -23,7 +23,7 @@ async function main() {
|
||||
}
|
||||
|
||||
console.log('Sign and submit the transaction:', accountSetTx)
|
||||
await client.submitReliable(wallet, accountSetTx)
|
||||
await client.submitAndWait(wallet, accountSetTx)
|
||||
|
||||
console.log("Finished submitting. Now disconnecting.")
|
||||
await client.disconnect()
|
||||
|
||||
Reference in New Issue
Block a user