banteg / multicall.py

aggregate results of multiple smart contract calls into one
MIT License
251 stars 108 forks source link

fix: eth_abi DeprecationWarning for encode_single and decode_single #50

Closed BobTheBuidler closed 2 years ago

BobTheBuidler commented 2 years ago

encode_single and decode_single were both deprecated in eth_abi v4.0.0.

The lowest web3 version supported is v5.27.0, which requires, at minimum, eth_abi v2.0.0b6.

This PR adapts multicall lib to all eth_abi versions from 2.0.0b6 to the latest 4.0.0 release.