I trying to listen events from smart contract but my code isn't working. what's the problem?
Event event = droneChain.UPDATEMISSIONSTATE_EVENT;
String encodedEventSignature = EventEncoder.encode(event);
EthFilter filter = new EthFilter(DefaultBlockParameterName.LATEST, DefaultBlockParameterName.LATEST,contractAddr).addSingleTopic(encodedEventSignature);
droneChain.updateMissionStateEventObservable(filter).subscribe(updateMissionStateEventResponse -> {Toast.makeText(MapsActivity.this, updateMissionStateEventResponse._from, Toast.LENGTH_SHORT);
},Throwable::printStackTrace);
here is my code.
any body help me