mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-26 14:45:50 +00:00
chore(code-samples): remove all emojis
This commit is contained in:
@@ -1,15 +1,15 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"time"
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
"github.com/Peersyst/xrpl-go/pkg/crypto"
|
||||
"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/pkg/crypto"
|
||||
"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"
|
||||
)
|
||||
|
||||
func main() {
|
||||
@@ -23,7 +23,7 @@ func main() {
|
||||
|
||||
client := rpc.NewClient(cfg)
|
||||
|
||||
fmt.Println("⏳ Funding wallets...")
|
||||
fmt.Println("Funding wallets...")
|
||||
w1, err := wallet.New(crypto.ED25519())
|
||||
if err != nil {
|
||||
fmt.Println(err)
|
||||
@@ -40,18 +40,18 @@ func main() {
|
||||
return
|
||||
}
|
||||
|
||||
fmt.Println("💸 Wallet 1 funded")
|
||||
fmt.Println("Wallet 1 funded")
|
||||
if err := client.FundWallet(&w2); err != nil {
|
||||
fmt.Println(err)
|
||||
return
|
||||
}
|
||||
|
||||
fmt.Println("💸 Wallet 2 funded")
|
||||
fmt.Println("Wallet 2 funded")
|
||||
fmt.Println()
|
||||
|
||||
time.Sleep(5 * time.Second)
|
||||
|
||||
fmt.Println("⏳ Sending TrustSet transaction...")
|
||||
fmt.Println("Sending TrustSet transaction...")
|
||||
ts := &transaction.TrustSet{
|
||||
BaseTx: transaction.BaseTx{
|
||||
Account: w2.ClassicAddress,
|
||||
@@ -83,12 +83,12 @@ func main() {
|
||||
return
|
||||
}
|
||||
|
||||
fmt.Println("✅ TrustSet transaction submitted!")
|
||||
fmt.Printf("🌐 Hash: %s\n", res.Hash.String())
|
||||
fmt.Printf("🌐 Validated: %t\n", res.Validated)
|
||||
fmt.Println("TrustSet transaction submitted!")
|
||||
fmt.Printf("Hash: %s\n", res.Hash.String())
|
||||
fmt.Printf("Validated: %t\n", res.Validated)
|
||||
fmt.Println()
|
||||
|
||||
fmt.Println("⏳ Issuing tokens for wallet 2...")
|
||||
fmt.Println("Issuing tokens for wallet 2...")
|
||||
p := &transaction.Payment{
|
||||
BaseTx: transaction.BaseTx{
|
||||
Account: w1.GetAddress(),
|
||||
@@ -121,12 +121,12 @@ func main() {
|
||||
return
|
||||
}
|
||||
|
||||
fmt.Println("✅ Payment transaction submitted!")
|
||||
fmt.Printf("🌐 Hash: %s\n", res.Hash.String())
|
||||
fmt.Printf("🌐 Validated: %t\n", res.Validated)
|
||||
fmt.Println("Payment transaction submitted!")
|
||||
fmt.Printf("Hash: %s\n", res.Hash.String())
|
||||
fmt.Printf("Validated: %t\n", res.Validated)
|
||||
fmt.Println()
|
||||
|
||||
fmt.Println("⏳ Submitting Partial Payment transaction...")
|
||||
fmt.Println("Submitting Partial Payment transaction...")
|
||||
pp := &transaction.Payment{
|
||||
BaseTx: transaction.BaseTx{
|
||||
Account: w2.GetAddress(),
|
||||
@@ -161,8 +161,8 @@ func main() {
|
||||
return
|
||||
}
|
||||
|
||||
fmt.Println("✅ Partial Payment transaction submitted!")
|
||||
fmt.Printf("🌐 Hash: %s\n", res.Hash.String())
|
||||
fmt.Printf("🌐 Validated: %t\n", res.Validated)
|
||||
fmt.Println("Partial Payment transaction submitted!")
|
||||
fmt.Printf("Hash: %s\n", res.Hash.String())
|
||||
fmt.Printf("Validated: %t\n", res.Validated)
|
||||
fmt.Println()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user