You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.
Trying to build USDT on foundry with solc v0.4.18 results in the following crash that can be traced over to the json line below.
the output is a valid one (acquired on the traces), it's just cant be deserialized for some reason
ethers-solc/src/compile/mod.rs
/// Run `solc --stand-json` and return the `solc`'s output as the given json/// outputpubfncompile_as<T:Serialize,D:DeserializeOwned>(&self,input:&T) -> Result<D>{let output = self.compile_output(input)?;Ok(serde_json::from_slice(&output)?)}
error:
➜ testdir git:(master) ✗ forge build --use 0.4.18
[⠊] Compiling...
[⠆] Compiling 1 files with 0.4.18
Error:
0: EOF while parsing a value at line 1 column 0
Location:
cli/src/compile.rs:99
The text was updated successfully, but these errors were encountered:
thanks for this
could you try dumping the json in/output via ETHERS_SOLC_LOG=in=in.json,out=out.json and perhaps try parsing them separately from a formatted json, that should highlight the serde issue I think
Trying to build USDT on foundry with
solc v0.4.18
results in the following crash that can be traced over to the json line below.the output is a valid one (acquired on the traces), it's just cant be deserialized for some reason
ethers-solc/src/compile/mod.rs
error:
➜ testdir git:(master) ✗ forge build --use 0.4.18 [⠊] Compiling... [⠆] Compiling 1 files with 0.4.18 Error: 0: EOF while parsing a value at line 1 column 0 Location: cli/src/compile.rs:99
The text was updated successfully, but these errors were encountered: