Fixed tron driver settings
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user