mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-24 13:45:49 +00:00
chore(code-samples): remove all emojis
This commit is contained in:
@@ -1,15 +1,15 @@
|
||||
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/rpc/types"
|
||||
transactions "github.com/Peersyst/xrpl-go/xrpl/transaction"
|
||||
txnTypes "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/rpc/types"
|
||||
transactions "github.com/Peersyst/xrpl-go/xrpl/transaction"
|
||||
txnTypes "github.com/Peersyst/xrpl-go/xrpl/transaction/types"
|
||||
"github.com/Peersyst/xrpl-go/xrpl/wallet"
|
||||
)
|
||||
|
||||
func main() {
|
||||
@@ -36,7 +36,7 @@ func main() {
|
||||
return
|
||||
}
|
||||
|
||||
fmt.Println("⏳ Funding wallets...")
|
||||
fmt.Println("Funding wallets...")
|
||||
if err := client.FundWallet(&delegatorWallet); err != nil {
|
||||
fmt.Println(err)
|
||||
return
|
||||
@@ -45,7 +45,7 @@ func main() {
|
||||
fmt.Println(err)
|
||||
return
|
||||
}
|
||||
fmt.Println("💸 Wallets funded")
|
||||
fmt.Println("Wallets funded")
|
||||
|
||||
// Check initial balances
|
||||
delegatorBalance, err := client.GetXrpBalance(delegatorWallet.ClassicAddress)
|
||||
@@ -57,8 +57,8 @@ func main() {
|
||||
delegateeBalance = "0"
|
||||
}
|
||||
|
||||
fmt.Printf("💳 Delegator initial balance: %s XRP\n", delegatorBalance)
|
||||
fmt.Printf("💳 Delegatee initial balance: %s XRP\n", delegateeBalance)
|
||||
fmt.Printf("Delegator initial balance: %s XRP\n", delegatorBalance)
|
||||
fmt.Printf("Delegatee initial balance: %s XRP\n", delegateeBalance)
|
||||
fmt.Println()
|
||||
|
||||
// Create DelegateSet transaction
|
||||
@@ -86,9 +86,9 @@ func main() {
|
||||
return
|
||||
}
|
||||
|
||||
fmt.Println("✅ DelegateSet transaction submitted")
|
||||
fmt.Printf("🌐 Hash: %s\n", response.Hash)
|
||||
fmt.Printf("🌐 Validated: %t\n", response.Validated)
|
||||
fmt.Println("DelegateSet transaction submitted")
|
||||
fmt.Printf("Hash: %s\n", response.Hash)
|
||||
fmt.Printf("Validated: %t\n", response.Validated)
|
||||
fmt.Println()
|
||||
|
||||
// Create delegated payment transaction
|
||||
@@ -111,9 +111,9 @@ func main() {
|
||||
return
|
||||
}
|
||||
|
||||
fmt.Println("✅ Delegated payment submitted")
|
||||
fmt.Printf("🌐 Hash: %s\n", response2.Hash)
|
||||
fmt.Printf("🌐 Validated: %t\n", response2.Validated)
|
||||
fmt.Println("Delegated payment submitted")
|
||||
fmt.Printf("Hash: %s\n", response2.Hash)
|
||||
fmt.Printf("Validated: %t\n", response2.Validated)
|
||||
fmt.Println()
|
||||
|
||||
// Check final balances
|
||||
@@ -126,6 +126,6 @@ func main() {
|
||||
finalDelegateeBalance = "0"
|
||||
}
|
||||
|
||||
fmt.Printf("💳 Delegator final balance: %s XRP\n", finalDelegatorBalance)
|
||||
fmt.Printf("💳 Delegatee final balance: %s XRP\n", finalDelegateeBalance)
|
||||
fmt.Printf("Delegator final balance: %s XRP\n", finalDelegatorBalance)
|
||||
fmt.Printf("Delegatee final balance: %s XRP\n", finalDelegateeBalance)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user