Fixed tron driver settings

This commit is contained in:
Stephan D
2026-03-03 17:50:50 +01:00
parent 34a8a5d057
commit d8f0febc5e
3 changed files with 3 additions and 12 deletions

View File

@@ -2,7 +2,6 @@ package tron
import (
"context"
"encoding/hex"
"math/big"
"strings"
@@ -18,8 +17,6 @@ import (
const (
// Default fee limit for TRC20 transfers (100 TRX in SUN)
defaultTRC20FeeLimit = 100_000_000
// SUN per TRX
sunPerTRX = 1_000_000
)
// SubmitTransferNative submits a transfer using native TRON gRPC.
@@ -299,11 +296,3 @@ func normalizeTxHash(txHash string) string {
h = strings.TrimPrefix(h, "0X")
return strings.ToLower(h)
}
// txHashToHex converts a byte slice transaction ID to hex string.
func txHashToHex(txID []byte) string {
if len(txID) == 0 {
return ""
}
return hex.EncodeToString(txID)
}