alloy-rs / core

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

[Feature] sol! attrs bytecode_path and deployed_bytecode_path #659

Open kpp opened 3 months ago

kpp commented 3 months ago

Component

sol! macro

Describe the feature you would like

Now sol! macro accepts only literal hex for bytecode: #[sol(abi, bytecode = "HEX")]. It would be nice to be able to pass a path to .bin file with HEX bytecode inside and include it at compile time as it's done for json abi.

Additional context

No response