Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants