web3j-maven-plugin
web3j-maven-plugin copied to clipboard
Filters do not work with Ganache/TestRPC with leading "0x" contract addresses
This is a reference to https://github.com/web3j/web3j/issues/405 as users of the Maven Plugin will most likely experience this problem when using Filters with Ganache/TestRPC.
Important: If you want to use Ganache/TestRPC and Filters, do not use the generated
EventObservable(DefaultBlockParameter startBlock, DefaultBlockParameter endBlock)
since the wrong address format is used, create the Filter yourself and use
EventObservable(EthFilter filter)
instead.
Remember to adjust the address when using Ganache/Geth, otherwise it won't work.