pub fn to_test_log_query(&self) -> LogQuery {
        let mut read_value = U256::zero();
        let mut written_value = U256::from_big_endian(self.value.as_bytes());
        if self.kind == StorageLogKind::Read {
            mem::swap(&mut read_value, &mut written_value);
        }

        LogQuery {
            timestamp: Timestamp(0),
            tx_number_in_block: 0,
            aux_byte: 0,
            shard_id: 0,
            address: *self.key.address(),
            key: U256::from_big_endian(self.key.key().as_bytes()),
            read_value,
            written_value,
            rw_flag: self.is_write(),
            rollback: false,
            is_service: false,
        }
    }
Converts this log to a log query that could be used in tests.
core/lib/types/src/storage/log.rs