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

feat(solc): emit additional raw metadata field #1365

Merged
merged 4 commits into from
Jun 10, 2022

Conversation

mattsse
Copy link
Collaborator

@mattsse mattsse commented Jun 9, 2022

Motivation

Closes #1325

Solution

add an additional rawMetadata:String field to artifact output which preserves solc's metadata string

PR Checklist

  • Added Tests
  • Added Documentation
  • Updated the changelog

@gakonst
Copy link
Owner

gakonst commented Jun 9, 2022

The --all-features tests seem to be hanging for some reason..

Is the unit test failure a flake?

@mattsse
Copy link
Collaborator Author

mattsse commented Jun 9, 2022

Is the unit test failure a flake?

forgot that solc emits empty string for metadata regardless...

improved the json_opt deserialization

@mattsse
Copy link
Collaborator Author

mattsse commented Jun 9, 2022

The --all-features tests seem to be hanging for some reason..

this is super annoying because for some reason there are no logs available for the job...

perhaps this is due to some hanging request, but testing locally works...

@mattsse
Copy link
Collaborator Author

mattsse commented Jun 9, 2022

@gakonst after looking at jobs that timed out,

it looks like can_stream_pending_transactions test hangs

https://github.com/gakonst/ethers-rs/runs/6801222172?check_suite_focus=true

ignored it for now until I debugged this on anvil

@@ -66,8 +66,8 @@ pub mod json_string_opt {
if s.is_empty() {
return Ok(None)
}

serde_json::from_str(&s).map_err(de::Error::custom).map(Some)
let value = serde_json::Value::String(s);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this needed?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants