ethers-rs icon indicating copy to clipboard operation
ethers-rs copied to clipboard

Use arbigen bindings without a provider

Open joleeee opened this issue 2 years ago • 6 comments

Is it possible to encode and decode contracts calls using bindings generated with abigen, but without actually instantiating them?

I know you can use the MYCONTRACT_ABI.function("myFunction"), and then decode/encode on that, but that's quite ugly, unergonomic and error-prone.

I'd be interested in submitting a PR myself but i wanna make sure there isn't some way that I've missed.

joleeee avatar Jun 22 '22 13:06 joleeee