web3j-maven-plugin icon indicating copy to clipboard operation
web3j-maven-plugin copied to clipboard

Filters do not work with Ganache/TestRPC with leading "0x" contract addresses

Open ice09 opened this issue 7 years ago • 0 comments

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.

ice09 avatar Nov 25 '18 16:11 ice09