From 12ea62db90f763e90273bd1dfe70415af066787b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=81=86=E5=90=AC?= Date: Wed, 13 Jan 2021 16:57:40 +0800 Subject: [PATCH] =?UTF-8?q?:zap:=20=E4=BB=A3=E7=A0=81=E6=A0=BC=E5=BC=8F?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/live/lingting/virtual/currency/Account.java | 2 +- .../lingting/virtual/currency/bitcoin/FeeAndSpent.java | 2 +- .../live/lingting/virtual/currency/omni/Transfer.java | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/java/live/lingting/virtual/currency/Account.java b/src/main/java/live/lingting/virtual/currency/Account.java index 12d6c73..0b5bc6b 100644 --- a/src/main/java/live/lingting/virtual/currency/Account.java +++ b/src/main/java/live/lingting/virtual/currency/Account.java @@ -65,7 +65,7 @@ public Account(String address, String publicKey, String privateKey) { * 请注意多签账号公私钥顺序, 顺序不正确可能导致交易广播失败 * @author lingting 2021-01-12 17:13 */ - public Account(String address,int multiNum, List publicKeyArray, List privateKeyArray) { + public Account(String address, int multiNum, List publicKeyArray, List privateKeyArray) { this.address = address; this.multi = true; this.multiNum = multiNum; diff --git a/src/main/java/live/lingting/virtual/currency/bitcoin/FeeAndSpent.java b/src/main/java/live/lingting/virtual/currency/bitcoin/FeeAndSpent.java index 96e1bcd..fe17703 100644 --- a/src/main/java/live/lingting/virtual/currency/bitcoin/FeeAndSpent.java +++ b/src/main/java/live/lingting/virtual/currency/bitcoin/FeeAndSpent.java @@ -125,7 +125,7 @@ public static FeeAndSpent of(PlatformService service, Contract contract, Transfe } // 小于 else { - throw new VirtualCurrencyException("余额不足 "+ coin.add(amount).toPlainString()); + throw new VirtualCurrencyException("余额不足 " + coin.add(amount).toPlainString()); } } diff --git a/src/test/java/live/lingting/virtual/currency/omni/Transfer.java b/src/test/java/live/lingting/virtual/currency/omni/Transfer.java index 90cd774..82e8793 100644 --- a/src/test/java/live/lingting/virtual/currency/omni/Transfer.java +++ b/src/test/java/live/lingting/virtual/currency/omni/Transfer.java @@ -203,10 +203,10 @@ public void btc() { // TransferResult transfer = service.transfer(ac1, a6, OmniContract.BTC, value); // TransferResult transfer = service.transfer(ac5, a1, OmniContract.BTC, value); // TransferResult transfer = service.transfer(ac7, a3, OmniContract.BTC, value); - TransferResult transfer = service.transfer(ac1, ac9.getAddress(), - OmniContract.BTC, value); - //TransferResult transfer = service.transfer(ac8, ac9.getAddress(), OmniContract.BTC, value); - //TransferResult transfer = service.transfer(ac9, a3, OmniContract.BTC, value); + TransferResult transfer = service.transfer(ac1, ac9.getAddress(), OmniContract.BTC, value); + // TransferResult transfer = service.transfer(ac8, ac9.getAddress(), + // OmniContract.BTC, value); + // TransferResult transfer = service.transfer(ac9, a3, OmniContract.BTC, value); if (!transfer.getSuccess()) { System.out.println("转账失败: " + JsonUtil.toJson(transfer));