APISonar


org.web3j.protocol.core.methods.response.Log.Log

> org > web3j > protocol > core > methods > response > Log > Log
org APIs web3j APIs protocol APIs core APIs methods APIs response APIs Log APIs Log APIs

Example 1
public void testProcessEventForLogWithoutTopics() {
        TransactionReceipt transactionReceipt = new TransactionReceipt();
        final Log log = new Log();
        log.setTopics(Collections.emptyList());
        // non-indexed value
        log.setData("0000000000000000000000000000000000000000000000000000000000000001");
        transactionReceipt.setLogs(singletonList(log));

        final List<EventValues> eventValues = contract.processEvent(transactionReceipt);
        assertTrue(eventValues.isEmpty(), "No events expected");
    }