banteg/multicall.py

Add support for additional arguments in the call function.

Dirt-Nasty opened this issue · 2 comments

Would it be possible to implement a way to pass additional field into the call function. Right now you are passing {to: address, data: data} into the call but there are some use cases for additional arguments. For example a few of the contracts I interact need a from argument as well.

Example:

self.w3.eth.call({'to': self.target, 'data': calldata, 'from': address})

we can probably catch **kwargs and update the params dict with them before contacting the node, wdyt?