alloy-rs / core

High-performance, well-tested & documented core libraries for Ethereum, in Rust
https://alloy.rs
Apache License 2.0
786 stars 149 forks source link

feat: add network generic to sol-macro #557

Closed onbjerg closed 8 months ago

onbjerg commented 8 months ago

Motivation

sol! needs to be adjusted to work with https://github.com/alloy-rs/alloy/pull/190

Solution

Adds network and transport generics to the generated code, which requires the new provider from https://github.com/alloy-rs/alloy/pull/190

I'd like some extensive reviewing of this as I'm not too experienced with proc macros

PR Checklist

onbjerg commented 8 months ago

Looks fine, can you test by patching to this branch on your PR? There's a test in alloy-contract

I did! 😄