From 37377ed1d106660c0406b48444ea633d424049f4 Mon Sep 17 00:00:00 2001 From: pie <429224280@qq.com> Date: Sat, 17 Apr 2021 20:56:00 +0800 Subject: [PATCH] update --- build.gradle | 2 +- .../tokencore/wallet/transaction/TronTransaction.java | 2 +- src/test/java/org/consenlabs/tokencore/Test.java | 10 +++------- 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/build.gradle b/build.gradle index 6d43a18..4e45a98 100644 --- a/build.gradle +++ b/build.gradle @@ -49,7 +49,7 @@ dependencies { // compile 'com.madgag.spongycastle:core:1.58.0.0' - compile 'io.grpc:grpc-stub:1.36.0' + compile 'io.grpc:grpc-stub:1.31.0' } processResources { diff --git a/src/main/java/org/consenlabs/tokencore/wallet/transaction/TronTransaction.java b/src/main/java/org/consenlabs/tokencore/wallet/transaction/TronTransaction.java index 47fcfe9..ad1f750 100644 --- a/src/main/java/org/consenlabs/tokencore/wallet/transaction/TronTransaction.java +++ b/src/main/java/org/consenlabs/tokencore/wallet/transaction/TronTransaction.java @@ -68,7 +68,7 @@ public TronTransaction(String from, String to, String contractAddress, long amou private String contractAddress; - TronClient client = TronClient.ofMainnet("3333333333333333333333333333333333333333333333333333333333333333"); + TronClient client = TronClient.ofMainnet(""); @Override public TxSignResult signTransaction(String chainId, String password, Wallet wallet) { diff --git a/src/test/java/org/consenlabs/tokencore/Test.java b/src/test/java/org/consenlabs/tokencore/Test.java index bd882f7..3e61ccc 100644 --- a/src/test/java/org/consenlabs/tokencore/Test.java +++ b/src/test/java/org/consenlabs/tokencore/Test.java @@ -13,6 +13,9 @@ import org.consenlabs.tokencore.wallet.transaction.BitcoinTransaction; import org.consenlabs.tokencore.wallet.transaction.TronTransaction; import org.consenlabs.tokencore.wallet.transaction.TxSignResult; +import org.tron.tronj.client.TronClient; +import org.tron.tronj.proto.Chain; +import org.tron.tronj.proto.Response; import java.io.File; import java.nio.file.Files; @@ -116,11 +119,4 @@ static public void signTrxTx() { } - - public static void main(String[] args) { - genFilecoinWallet(); - } - - - }