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,14 +1,14 @@
|
||||
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/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() {
|
||||
@@ -40,30 +40,30 @@ func main() {
|
||||
return
|
||||
}
|
||||
|
||||
fmt.Println("⏳ Funding wallets...")
|
||||
fmt.Println("Funding wallets...")
|
||||
if err := client.FundWallet(&w1); err != nil {
|
||||
fmt.Println(err)
|
||||
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")
|
||||
|
||||
if err := client.FundWallet(®ularKeyWallet); err != nil {
|
||||
fmt.Println(err)
|
||||
return
|
||||
}
|
||||
|
||||
fmt.Println("💸 Regular key wallet funded")
|
||||
fmt.Println("Regular key wallet funded")
|
||||
fmt.Println()
|
||||
|
||||
fmt.Println("⏳ Setting regular key...")
|
||||
fmt.Println("Setting regular key...")
|
||||
rk := &transaction.SetRegularKey{
|
||||
BaseTx: transaction.BaseTx{
|
||||
Account: w1.GetAddress(),
|
||||
@@ -91,12 +91,12 @@ func main() {
|
||||
return
|
||||
}
|
||||
|
||||
fmt.Println("✅ SetRegularKey transaction submitted")
|
||||
fmt.Printf("🌐 Hash: %s\n", res.Hash)
|
||||
fmt.Printf("🌐 Validated: %t\n", res.Validated)
|
||||
fmt.Println("SetRegularKey transaction submitted")
|
||||
fmt.Printf("Hash: %s\n", res.Hash)
|
||||
fmt.Printf("Validated: %t\n", res.Validated)
|
||||
fmt.Println()
|
||||
|
||||
fmt.Println("⏳ Checking if regular key is set...")
|
||||
fmt.Println("Checking if regular key is set...")
|
||||
p := &transaction.Payment{
|
||||
BaseTx: transaction.BaseTx{
|
||||
Account: w1.GetAddress(),
|
||||
@@ -125,7 +125,7 @@ func main() {
|
||||
return
|
||||
}
|
||||
|
||||
fmt.Println("✅ Payment transaction submitted")
|
||||
fmt.Printf("🌐 Hash: %s\n", res.Hash)
|
||||
fmt.Printf("🌐 Validated: %t\n", res.Validated)
|
||||
fmt.Println("Payment transaction submitted")
|
||||
fmt.Printf("Hash: %s\n", res.Hash)
|
||||
fmt.Printf("Validated: %t\n", res.Validated)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user