Closed CjS77 closed 3 months ago
I believe the limitation is this
which doesn't support single quotes,
so we need to parse this manually
Yup, certainly a non-trivial fix.
But still technically a bug.
As a workaround, I'm using the JSON ABI in lieu of the contract code which is working fine.
This is not supported at the rust level. Proc macros get rust syntax tokens as input, and rust does not support single-quote literals longer than 1 character. See limitations in https://github.com/alloy-rs/core/tree/main/crates/syn-solidity
Component
sol! macro
What version of Alloy are you on?
alloy = { version = "0.2.1", features = ["full", "rpc", "json-rpc", "signer-mnemonic", "signers", "serde", "transports", "transport-http"] }
Operating System
Linux
Describe the bug
This parses fine:
This does not:
Using double-quotes isn't always convenient, since the main use-case here is to import contracts from 3rd-party libraries with