chore(samples): replace tab for 4 spaces

This commit is contained in:
banasa44
2025-07-23 10:51:03 +02:00
committed by akcodez
parent 2abda7d682
commit 43630fbdca
44 changed files with 5891 additions and 5891 deletions

View File

@@ -1,42 +1,42 @@
package main
import (
"fmt"
"fmt"
"github.com/Peersyst/xrpl-go/pkg/crypto"
"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/transaction"
"github.com/Peersyst/xrpl-go/xrpl/transaction/types"
"github.com/Peersyst/xrpl-go/xrpl/wallet"
)
func main() {
w, err := wallet.New(crypto.ED25519())
if err != nil {
panic(err)
}
w, err := wallet.New(crypto.ED25519())
if err != nil {
panic(err)
}
p := &transaction.Payment{
BaseTx: transaction.BaseTx{
Account: types.Address(w.GetAddress()),
Fee: types.XRPCurrencyAmount(13),
Sequence: 1,
Flags: 2147483648,
LastLedgerSequence: 7835923,
},
Destination: "rPT1Sjq2YGrBMTttX4GZHjKu9dyfzbpAYe",
Amount: types.XRPCurrencyAmount(10000),
DeliverMax: types.XRPCurrencyAmount(10000),
}
p := &transaction.Payment{
BaseTx: transaction.BaseTx{
Account: types.Address(w.GetAddress()),
Fee: types.XRPCurrencyAmount(13),
Sequence: 1,
Flags: 2147483648,
LastLedgerSequence: 7835923,
},
Destination: "rPT1Sjq2YGrBMTttX4GZHjKu9dyfzbpAYe",
Amount: types.XRPCurrencyAmount(10000),
DeliverMax: types.XRPCurrencyAmount(10000),
}
flattenedTx := p.Flatten()
flattenedTx := p.Flatten()
fmt.Println("Payment object created:", flattenedTx)
fmt.Println("Payment object created:", flattenedTx)
signedTx, txHash, err := w.Sign(flattenedTx)
if err != nil {
panic(err)
}
signedTx, txHash, err := w.Sign(flattenedTx)
if err != nil {
panic(err)
}
fmt.Println("Transaction signed successfully:", signedTx)
fmt.Println("Transaction hash:", txHash)
fmt.Println("Transaction signed successfully:", signedTx)
fmt.Println("Transaction hash:", txHash)
}