mirror of
https://gitee.com/BDWare/cp.git
synced 2026-01-28 17:19:26 +00:00
keep sync
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user