mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-25 06:05:51 +00:00
chore(code-samples): remove all emojis
This commit is contained in:
@@ -1,16 +1,16 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"encoding/hex"
|
||||
"fmt"
|
||||
"strconv"
|
||||
"encoding/hex"
|
||||
"fmt"
|
||||
"strconv"
|
||||
|
||||
"github.com/Peersyst/xrpl-go/xrpl/currency"
|
||||
"github.com/Peersyst/xrpl-go/xrpl/faucet"
|
||||
"github.com/Peersyst/xrpl-go/xrpl/rpc"
|
||||
transactions "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"
|
||||
transactions "github.com/Peersyst/xrpl-go/xrpl/transaction"
|
||||
"github.com/Peersyst/xrpl-go/xrpl/transaction/types"
|
||||
"github.com/Peersyst/xrpl-go/xrpl/wallet"
|
||||
)
|
||||
|
||||
func main() {
|
||||
@@ -39,18 +39,18 @@ func main() {
|
||||
balance, err := client.GetXrpBalance(w.GetAddress())
|
||||
|
||||
if err != nil || balance == "0" {
|
||||
fmt.Println("⏳ Funding wallet...")
|
||||
fmt.Println("Funding wallet...")
|
||||
err = client.FundWallet(&w)
|
||||
if err != nil {
|
||||
fmt.Println(err)
|
||||
return
|
||||
}
|
||||
fmt.Println("💸 Wallet funded")
|
||||
fmt.Println("Wallet funded")
|
||||
}
|
||||
|
||||
balance, _ = client.GetXrpBalance(w.GetAddress())
|
||||
|
||||
fmt.Printf("💸 Balance: %s\n", balance)
|
||||
fmt.Printf("Balance: %s\n", balance)
|
||||
|
||||
amount, err := currency.XrpToDrops("1")
|
||||
if err != nil {
|
||||
@@ -64,7 +64,7 @@ func main() {
|
||||
return
|
||||
}
|
||||
|
||||
fmt.Println("⏳ Sending payment...")
|
||||
fmt.Println("Sending payment...")
|
||||
payment := transactions.Payment{
|
||||
BaseTx: transactions.BaseTx{
|
||||
Account: types.Address(w.GetAddress()),
|
||||
@@ -109,7 +109,7 @@ func main() {
|
||||
return
|
||||
}
|
||||
|
||||
fmt.Println("✅ Payment submitted")
|
||||
fmt.Printf("🌐 Hash: %s\n", response.Hash.String())
|
||||
fmt.Printf("🌐 Validated: %t\n", response.Validated)
|
||||
fmt.Println("Payment submitted")
|
||||
fmt.Printf("Hash: %s\n", response.Hash.String())
|
||||
fmt.Printf("Validated: %t\n", response.Validated)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user