diff --git a/src/test/java/org/bdware/sc/boundry/utils/test/LedgerUtilTest.java b/src/test/java/org/bdware/sc/boundry/utils/test/LedgerUtilTest.java index 19460e0..2c1c84d 100644 --- a/src/test/java/org/bdware/sc/boundry/utils/test/LedgerUtilTest.java +++ b/src/test/java/org/bdware/sc/boundry/utils/test/LedgerUtilTest.java @@ -1,15 +1,11 @@ package org.bdware.sc.boundry.utils.test; import org.bdware.bdledger.api.grpc.Client; -import org.bdware.bdledger.api.grpc.pb.CommonProto; -import org.bdware.bdledger.api.grpc.pb.LedgerProto; import org.bdware.sc.conn.ByteUtil; -import org.bdware.sc.util.HashUtil; import org.bouncycastle.pqc.math.linearalgebra.ByteUtils; import org.junit.Test; import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; public class LedgerUtilTest { public static void main(String[] arg) { @@ -20,10 +16,10 @@ public class LedgerUtilTest { System.out.println(c.clientVersionSync().getVersion()); System.out.println(c.getLedgersSync().toString()); String from = "0xb60e8dd61c5d32be8058bb8eb970870f07233155"; -// LedgerProto.SendTransactionResponse ret = -// c.sendTransactionSync("bdcontract", CommonProto.TransactionType.MESSAGE, from, -// System.currentTimeMillis(), from, "hello".getBytes(StandardCharsets.UTF_8)); -// System.out.println("=====" + HashUtil.byteArray2Str(ret.getHash().toByteArray())); + // LedgerProto.SendTransactionResponse ret = + // c.sendTransactionSync("bdcontract", CommonProto.TransactionType.MESSAGE, from, + // System.currentTimeMillis(), from, "hello".getBytes(StandardCharsets.UTF_8)); + // System.out.println("=====" + HashUtil.byteArray2Str(ret.getHash().toByteArray())); } @Test