xiaoyong931011
2023-05-27 cd0b59a4b3ae094a2eb4850e22c9a9afc593dda3
twoCoin项目修改
2 files modified
7 ■■■■■ changed files
src/main/java/cc/mrbird/febs/dapp/chain/EthService.java 4 ●●●● patch | view | raw | blame | history
src/test/java/cc/mrbird/febs/MemberTest.java 3 ●●●● patch | view | raw | blame | history
src/main/java/cc/mrbird/febs/dapp/chain/EthService.java
@@ -257,8 +257,8 @@
    }
    public String tokenTransfer(String privateKey, String fromAddress, String toAddress, String amount) throws ExecutionException, InterruptedException {
        String gas = getGas();
//        String gas = "5";
//        String gas = getGas();
        String gas = "5";
        BigDecimal amountPow = new BigDecimal(amount).multiply(BigDecimal.TEN.pow(decimals()));
        amount = amountPow.toPlainString();
src/test/java/cc/mrbird/febs/MemberTest.java
@@ -80,7 +80,8 @@
    @Test
    public void tranfer(){
//        dappSystemService.antKLineMsg(1);
        dappSystemService.aKlineJobHour();
        dappSystemService.AntACoinInMsg(780L);
//        dappSystemService.aKlineJobHour();
//        dappSystemService.aKlineJobDay();
//        dappSystemService.AntACoinInMsg(164L);