fix: Tron Timeout Issue (#1448)
* fix: Tron timeout issue * fix: Revert * fix: Tron transaction expiry error
Adegoke David committed
May 15, 2024 at 00:54 UTC
fbecc5c994710f5429f443e5dc16a882b4dd4fbd
4 files changed
+5
-5
cw_tron/lib/tron_client.dart
+2
-2
@@ -208,7 +208,7 @@ class TronClient {
208
TransactionContract(type: contract.contractType, parameter: parameter);
209
210
// Set the transaction expiration time (maximum 24 hours)
211
- final expireTime = DateTime.now().add(const Duration(hours: 24));
211
+ final expireTime = DateTime.now().add(const Duration(minutes: 30));
212
213
// Create a raw transaction
214
TransactionRaw rawTransaction = TransactionRaw(
@@ -369,7 +369,7 @@ class TronClient {
369
TransactionContract(type: contract.contractType, parameter: parameter);
370
371
// Set the transaction expiration time (maximum 24 hours)
372
- final expireTime = DateTime.now().add(const Duration(hours: 24));
372
+ final expireTime = DateTime.now().add(const Duration(minutes: 30));
373
374
// Create a raw transaction
375
TransactionRaw rawTransaction = TransactionRaw(
scripts/android/pubspec_gen.sh
+1
-1
@@ -10,7 +10,7 @@ case $APP_ANDROID_TYPE in
10
CONFIG_ARGS="--monero"
11
;;
12
$CAKEWALLET)
13
- CONFIG_ARGS="--monero --bitcoin --haven --ethereum --polygon --nano --bitcoinCash --solana"
13
+ CONFIG_ARGS="--monero --bitcoin --haven --ethereum --polygon --nano --bitcoinCash --solana --tron"
14
;;
15
$HAVEN)
16
CONFIG_ARGS="--haven"
scripts/ios/app_config.sh
+1
-1
@@ -28,7 +28,7 @@ case $APP_IOS_TYPE in
28
CONFIG_ARGS="--monero"
29
;;
30
$CAKEWALLET)
31
- CONFIG_ARGS="--monero --bitcoin --haven --ethereum --polygon --nano --bitcoinCash --solana"
31
+ CONFIG_ARGS="--monero --bitcoin --haven --ethereum --polygon --nano --bitcoinCash --solana --tron"
32
;;
33
$HAVEN)
34
scripts/macos/app_config.sh
+1
-1
@@ -31,7 +31,7 @@ case $APP_MACOS_TYPE in
31
$MONERO_COM)
32
CONFIG_ARGS="--monero";;
33
$CAKEWALLET)
34
- CONFIG_ARGS="--monero --bitcoin --ethereum --polygon --nano --bitcoinCash --solana";; #--haven
34
+ CONFIG_ARGS="--monero --bitcoin --ethereum --polygon --nano --bitcoinCash --solana --tron";; #--haven
35
esac
36
37
cp -rf pubspec_description.yaml pubspec.yaml