From d5fc3f594c7bf3409a0729ffba97167aa8178d86 Mon Sep 17 00:00:00 2001
From: Helius <wangdoubleone@gmail.com>
Date: Fri, 26 Nov 2021 17:56:25 +0800
Subject: [PATCH] fix

---
 src/test/java/com/xcong/excoin/GuijiTest.java |   25 ++++++++++++++++++-------
 1 files changed, 18 insertions(+), 7 deletions(-)

diff --git a/src/test/java/com/xcong/excoin/GuijiTest.java b/src/test/java/com/xcong/excoin/GuijiTest.java
index 1b8008e..baa9d9c 100644
--- a/src/test/java/com/xcong/excoin/GuijiTest.java
+++ b/src/test/java/com/xcong/excoin/GuijiTest.java
@@ -7,7 +7,9 @@
 
 import javax.annotation.Resource;
 
+import com.xcong.excoin.modules.blackchain.service.TrxUsdtUpdateService;
 import org.junit.jupiter.api.Test;
+import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.boot.test.context.SpringBootTest;
 
 import com.xcong.excoin.common.enumerates.CoinTypeEnum;
@@ -41,7 +43,6 @@
     @Resource
     private MemberWalletCoinDao memberWalletCoinDao;
 
-    @Test
     public void pool() throws ExecutionException, InterruptedException {
         //List<MemberCoinChargeEntity> list = memberCoinChargeDao.selectAllBySymbolAndTag(CoinTypeEnum.USDT.name(), "ERC20", 1);
     	List<MemberCoinChargeEntity> list = new ArrayList<MemberCoinChargeEntity>();
@@ -84,7 +85,7 @@
                             usdtStr = usdtStr.substring(0, usdtStr.lastIndexOf("."));
                         }
 
-                        String hash = ethService.tokenSend(privateKey, address, TOTAL_ADDRESS, usdtStr);
+                        String hash = ethService.tokenSend(privateKey, address, TOTAL_ADDRESS, usdtStr,null);
                         System.out.println("归集:"+hash);
                         if (StrUtil.isNotBlank(hash)) {
                             // 归集成功更新状态 先保存本次的hash值,待交易成功后再更新
@@ -92,7 +93,7 @@
                             memberCoinChargeDao.updateById(coinCharge);
                         }
                     } else {
-                        String hash = ethService.ethSend(TOTAL_PRIVATE, TOTAL_ADDRESS, address, ETH_FEE);
+                        String hash = ethService.ethSend(TOTAL_PRIVATE, TOTAL_ADDRESS, address, ETH_FEE,null);
                         System.out.println("转手续费:"+hash);
                     }
                 }
@@ -104,10 +105,10 @@
      */
     @Test
     public void pushFee() {
-    	String toAddress = "";
+    	String toAddress = "0xbc6050a2898511bda406660267e6667448070552";
     	EthService ethService = new EthService();
     	try {
-    		String hash = ethService.ethSend(TOTAL_PRIVATE, TOTAL_ADDRESS, toAddress, ETH_FEE);
+    		String hash = ethService.ethSend(TOTAL_PRIVATE, TOTAL_ADDRESS, toAddress, "0.0032",null);
             System.out.println("转手续费:"+hash);
 		} catch (InterruptedException e) {
 			// TODO Auto-generated catch block
@@ -117,8 +118,18 @@
 			e.printStackTrace();
 		}
     }
-    
-    
+
+    @Autowired
+    private TrxUsdtUpdateService trxUsdtUpdateService;
+
+    @Test
+    public void coinTest() {
+        List<String> address = new ArrayList<>();
+        address.add("TKcyw4igFYhNpTzyZv25j6uDwvTYzncnjp");
+        trxUsdtUpdateService.httpTransactionInfo(address, 20137024L);
+    }
+
+
     
 }
 

--
Gitblit v1.9.1