keep sync

This commit is contained in:
CaiHQ 2025-06-10 11:29:39 +08:00
parent 4087202c24
commit a17925a5f1

View File

@ -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