multicall.py icon indicating copy to clipboard operation
multicall.py copied to clipboard

Add support for additional arguments in the call function.

Open Dirt-Nasty opened this issue 3 years ago • 1 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})

Dirt-Nasty avatar Apr 18 '21 14:04 Dirt-Nasty

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

BobTheBuidler avatar May 27 '23 00:05 BobTheBuidler