Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

Generated bindings generate invalid Cargo.toml #1913

Closed
jaeaster opened this issue Nov 30, 2022 · 0 comments · Fixed by #1914
Closed

Generated bindings generate invalid Cargo.toml #1913

jaeaster opened this issue Nov 30, 2022 · 0 comments · Fixed by #1914
Labels
bug Something isn't working

Comments

@jaeaster
Copy link
Contributor

Version
Using latest forge bind, which uses ethers version:

version = "1.0.2"
source = "git+https://github.com/gakonst/ethers-rs#d48187ac0d314c8ed498d86b01d0ee53b0266166"

Platform
Darwin arm64

Description
The generated Cargo.toml for the generated bindings crate has invalid toml syntax.

# GENERATED (invalid)
[dependencies]
ethers = {{ git = "https://github.com/gakonst/ethers-rs", default-features = false, features = ["abigen"] }}

# EXPECTED (valid)
[dependencies]
ethers = { git = "https://github.com/gakonst/ethers-rs", default-features = false, features = ["abigen"] }

I used forge bind to generate the bindings, which uses ethers 1.0.2.

Looks like there were recent related changes: #1869
And some revisions of those changes more recently.
It seems like the string interpolation is broken now.

@jaeaster jaeaster added the bug Something isn't working label Nov 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant