-
Notifications
You must be signed in to change notification settings - Fork 16
Solidity compilation / Rust ABI generation isn't incremental #215
Comments
This is mostly solvable by running |
I know the current situation isn't ideal. It would be best to get rid of that build-abi script.
If we do have to implement a manual solution we could check the timestamps. This should be easy but I vaguely remember the straightforward implementation I tried for this some time ago also did not work well in some cases. |
Another related note. We could consider moving back to having a build script that writes the bindings out to file. This would ensure that
The main reason why we removed the build script is because we needed the de-duplication and it was only available via the abigen macro until was merged. |
Was closed so I will try using the hardhat artifacts directly again. |
The solidity structs are not generated if we use the hardhat json directly. Reported upstream in gakonst/ethers-rs#683 (comment) |
If I run
nix-shell --run cape-test-geth
, I seeevery time regardless of whether any solidity code has changed. This takes a few seconds every time (which is pretty annoying if I'm fixing a bunch of compilation errors/warning and want to check that I got them all), and if I try to just use
cargo test
orcargo clippy
I sometimes get compilation errors because it doesn't have ABI files, or get test failures because there isn't a geth instance running.The text was updated successfully, but these errors were encountered: