From d8f0febc5e5949f5357d7682426f97333e083109 Mon Sep 17 00:00:00 2001 From: Stephan D Date: Tue, 3 Mar 2026 17:50:50 +0100 Subject: [PATCH] Fixed tron driver settings --- api/gateway/tron/go.mod | 2 +- api/gateway/tron/go.sum | 2 ++ .../internal/service/gateway/driver/tron/transfer.go | 11 ----------- 3 files changed, 3 insertions(+), 12 deletions(-) diff --git a/api/gateway/tron/go.mod b/api/gateway/tron/go.mod index da5d0e3f..f117a718 100644 --- a/api/gateway/tron/go.mod +++ b/api/gateway/tron/go.mod @@ -8,7 +8,7 @@ replace github.com/tech/sendico/gateway/common => ../common require ( github.com/decred/dcrd/dcrec/secp256k1/v4 v4.4.1 - github.com/ethereum/go-ethereum v1.17.0 + github.com/ethereum/go-ethereum v1.17.1 github.com/fbsobreira/gotron-sdk v0.24.2 github.com/mitchellh/mapstructure v1.5.0 github.com/prometheus/client_golang v1.23.2 diff --git a/api/gateway/tron/go.sum b/api/gateway/tron/go.sum index 85f285f5..70e8e103 100644 --- a/api/gateway/tron/go.sum +++ b/api/gateway/tron/go.sum @@ -82,6 +82,8 @@ github.com/ethereum/go-bigmodexpfix v0.0.0-20250911101455-f9e208c548ab h1:rvv6MJ github.com/ethereum/go-bigmodexpfix v0.0.0-20250911101455-f9e208c548ab/go.mod h1:IuLm4IsPipXKF7CW5Lzf68PIbZ5yl7FFd74l/E0o9A8= github.com/ethereum/go-ethereum v1.17.0 h1:2D+1Fe23CwZ5tQoAS5DfwKFNI1HGcTwi65/kRlAVxes= github.com/ethereum/go-ethereum v1.17.0/go.mod h1:2W3msvdosS/MCWytpqTcqgFiRYbTH59FxDJzqah120o= +github.com/ethereum/go-ethereum v1.17.1 h1:IjlQDjgxg2uL+GzPRkygGULPMLzcYWncEI7wbaizvho= +github.com/ethereum/go-ethereum v1.17.1/go.mod h1:7UWOVHL7K3b8RfVRea022btnzLCaanwHtBuH1jUCH/I= github.com/fatih/color v1.18.0 h1:S8gINlzdQ840/4pfAwic/ZE0djQEH3wM94VfqLTZcOM= github.com/fatih/color v1.18.0/go.mod h1:4FelSpRwEGDpQ12mAdzqdOukCy4u8WUtOY6lkT/6HfU= github.com/fbsobreira/go-bip39 v1.2.0 h1:zp3VDGrQeGu8/iPB5wsHVSaOwQhBSLR71CE3nJVz4mY= diff --git a/api/gateway/tron/internal/service/gateway/driver/tron/transfer.go b/api/gateway/tron/internal/service/gateway/driver/tron/transfer.go index d261e404..78a8da85 100644 --- a/api/gateway/tron/internal/service/gateway/driver/tron/transfer.go +++ b/api/gateway/tron/internal/service/gateway/driver/tron/transfer.go @@ -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) -} -- 2.49.1