mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-28 07:35:50 +00:00
chore(code-samples): remove all emojis
This commit is contained in:
@@ -1,17 +1,17 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"strconv"
|
||||
"fmt"
|
||||
"strconv"
|
||||
|
||||
"github.com/Peersyst/xrpl-go/xrpl/currency"
|
||||
"github.com/Peersyst/xrpl-go/xrpl/faucet"
|
||||
"github.com/Peersyst/xrpl-go/xrpl/rpc"
|
||||
"github.com/Peersyst/xrpl-go/xrpl/transaction"
|
||||
"github.com/Peersyst/xrpl-go/xrpl/transaction/types"
|
||||
"github.com/Peersyst/xrpl-go/xrpl/wallet"
|
||||
"github.com/Peersyst/xrpl-go/xrpl/currency"
|
||||
"github.com/Peersyst/xrpl-go/xrpl/faucet"
|
||||
"github.com/Peersyst/xrpl-go/xrpl/rpc"
|
||||
"github.com/Peersyst/xrpl-go/xrpl/transaction"
|
||||
"github.com/Peersyst/xrpl-go/xrpl/transaction/types"
|
||||
"github.com/Peersyst/xrpl-go/xrpl/wallet"
|
||||
|
||||
rpctypes "github.com/Peersyst/xrpl-go/xrpl/rpc/types"
|
||||
rpctypes "github.com/Peersyst/xrpl-go/xrpl/rpc/types"
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -38,13 +38,13 @@ func main() {
|
||||
return
|
||||
}
|
||||
|
||||
fmt.Println("⏳ Funding wallet...")
|
||||
fmt.Println("Funding wallet...")
|
||||
if err := client.FundWallet(&w); err != nil {
|
||||
fmt.Println(err)
|
||||
return
|
||||
}
|
||||
|
||||
fmt.Println("💸 Wallet funded")
|
||||
fmt.Println("Wallet funded")
|
||||
fmt.Println()
|
||||
|
||||
xrpAmount, err := currency.XrpToDrops("1")
|
||||
@@ -59,7 +59,7 @@ func main() {
|
||||
return
|
||||
}
|
||||
|
||||
fmt.Println("⏳ Sending 1 XRP to rPT1Sjq2YGrBMTttX4GZHjKu9dyfzbpAYe...")
|
||||
fmt.Println("Sending 1 XRP to rPT1Sjq2YGrBMTttX4GZHjKu9dyfzbpAYe...")
|
||||
p := &transaction.Payment{
|
||||
BaseTx: transaction.BaseTx{
|
||||
Account: types.Address(w.GetAddress()),
|
||||
@@ -88,11 +88,11 @@ func main() {
|
||||
return
|
||||
}
|
||||
|
||||
fmt.Println("✅ Payment submitted")
|
||||
fmt.Printf("🌐 Hash: %s\n", res.Hash)
|
||||
fmt.Printf("🌐 Validated: %t\n", res.Validated)
|
||||
fmt.Println("Payment submitted")
|
||||
fmt.Printf("Hash: %s\n", res.Hash)
|
||||
fmt.Printf("Validated: %t\n", res.Validated)
|
||||
fmt.Println()
|
||||
fmt.Println("⏳ Using SubmitTxAndWait with wallet")
|
||||
fmt.Println("Using SubmitTxAndWait with wallet")
|
||||
fmt.Println()
|
||||
|
||||
flattenedTx2 := p.Flatten()
|
||||
@@ -105,7 +105,7 @@ func main() {
|
||||
return
|
||||
}
|
||||
|
||||
fmt.Println("✅ Payment submitted via SubmitTxAndWait")
|
||||
fmt.Printf("🌐 Hash: %s\n", resp.Hash)
|
||||
fmt.Printf("🌐 Validated: %t\n", resp.Validated)
|
||||
fmt.Println("Payment submitted via SubmitTxAndWait")
|
||||
fmt.Printf("Hash: %s\n", resp.Hash)
|
||||
fmt.Printf("Validated: %t\n", resp.Validated)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user