chore(code-samples): remove all emojis

This commit is contained in:
banasa44
2025-08-25 11:27:50 +02:00
parent 22d67e640d
commit 162a97887e
40 changed files with 1125 additions and 1123 deletions

View File

@@ -1,17 +1,17 @@
package main
import (
"fmt"
"fmt"
"github.com/Peersyst/xrpl-go/pkg/crypto"
"github.com/Peersyst/xrpl-go/xrpl/faucet"
"github.com/Peersyst/xrpl-go/xrpl/queries/path"
"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/queries/path"
"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"
pathtypes "github.com/Peersyst/xrpl-go/xrpl/queries/path/types"
pathtypes "github.com/Peersyst/xrpl-go/xrpl/queries/path/types"
)
const (
@@ -43,16 +43,16 @@ func main() {
return
}
fmt.Println("Funding wallet...")
fmt.Println("Funding wallet...")
if err := client.FundWallet(&wallet); err != nil {
fmt.Println(err)
return
}
fmt.Println("💸 Wallet funded")
fmt.Println("Wallet funded")
fmt.Println()
fmt.Println("Getting paths...")
fmt.Println("Getting paths...")
res, err := client.GetRipplePathFind(&path.RipplePathFindRequest{
SourceAccount: wallet.GetAddress(),
SourceCurrencies: []pathtypes.RipplePathFindCurrency{
@@ -68,15 +68,15 @@ func main() {
return
}
fmt.Printf("🌐 Computed paths: %d\n", len(res.Alternatives))
fmt.Printf("Computed paths: %d\n", len(res.Alternatives))
fmt.Println()
if len(res.Alternatives) == 0 {
fmt.Println("No alternatives found")
fmt.Println("No alternatives found")
return
}
fmt.Println("Submitting Payment through path: ", res.Alternatives[0].PathsComputed)
fmt.Println("Submitting Payment through path: ", res.Alternatives[0].PathsComputed)
p := &transaction.Payment{
BaseTx: transaction.BaseTx{
Account: wallet.GetAddress(),
@@ -105,7 +105,7 @@ func main() {
return
}
fmt.Println("Payment submitted")
fmt.Printf("🌐 Hash: %s\n", hash)
fmt.Printf("🌐 Validated: %t\n", txRes.Validated)
fmt.Println("Payment submitted")
fmt.Printf("Hash: %s\n", hash)
fmt.Printf("Validated: %t\n", txRes.Validated)
}