tomusdrw / rust-web3

Ethereum JSON-RPC multi-transport client. Rust implementation of web3 library. ENS address: rust-web3.eth
MIT License
1.45k stars 471 forks source link

Contract query fails on bool values #573

Closed Mineco1006 closed 2 years ago

Mineco1006 commented 2 years ago

Calling public bools from a contract always results in an RPC error. Error: Api(Rpc(Error { code: ServerError(-32000), message: "execution reverted", data: None }))

I used version 0.17.0 before which worked fine, since I switched to the latest code directly from the repository this is the error I always get when calling a bool. I don't know if this applies to other types too, the only other one I have tried calling was a U256 which worked.

Mineco1006 commented 2 years ago

Ok nvm my contract I used for testing produced the issue it seems.