Skip to content

Commit

Permalink
<feat>(BCOSStubCallContractIntegTest): update BCOSStubCallContractInt…
Browse files Browse the repository at this point in the history
…egTest and Formatted code
  • Loading branch information
lbhan2 committed Dec 15, 2023
1 parent 2803d1a commit 5ee1383
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import com.webank.wecross.stub.Path;
import com.webank.wecross.stub.ResourceInfo;
import com.webank.wecross.stub.StubConstant;
import com.webank.wecross.stub.Transaction;
import com.webank.wecross.stub.TransactionContext;
import com.webank.wecross.stub.TransactionRequest;
import com.webank.wecross.stub.bcos3.AsyncBfsService;
Expand Down Expand Up @@ -232,9 +233,9 @@ public void getBlockHeaderIntegTest() throws InterruptedException {
driver.asyncGetBlock(blockNumber, false, connection, (e2, block) -> {
assertNull(e2);
BlockHeader blockHeader = block.getBlockHeader();
List<String> transactionsHashes = block.getTransactionsHashes();
assertEquals(1, transactionsHashes.size());
assertTrue(Objects.nonNull(transactionsHashes.get(0)));
List<Transaction> transactionsWithDetail = block.getTransactionsWithDetail();
assertEquals(1, transactionsWithDetail.size());
assertTrue(Objects.nonNull(transactionsWithDetail.get(0)));
assertTrue(block.getRawBytes().length > 1);
assertTrue(Objects.nonNull(blockHeader));
assertTrue(Objects.nonNull(blockHeader.getHash()));
Expand Down

0 comments on commit 5ee1383

Please sign in to comment.