-
Notifications
You must be signed in to change notification settings - Fork 20.4k
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
cmd/abigen: refactor command line interface #19797
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -142,7 +142,6 @@ func ParseCombinedJSON(combinedJSON []byte, source string, languageVersion strin | |
if err := json.Unmarshal(combinedJSON, &output); err != nil { | ||
return nil, err | ||
} | ||
|
||
// Compilation succeeded, assemble and return the contracts. | ||
contracts := make(map[string]*Contract) | ||
for name, info := range output.Contracts { | ||
|
@@ -151,14 +150,10 @@ func ParseCombinedJSON(combinedJSON []byte, source string, languageVersion strin | |
if err := json.Unmarshal([]byte(info.Abi), &abi); err != nil { | ||
return nil, fmt.Errorf("solc: error reading abi definition (%v)", err) | ||
} | ||
var userdoc interface{} | ||
if err := json.Unmarshal([]byte(info.Userdoc), &userdoc); err != nil { | ||
return nil, fmt.Errorf("solc: error reading user doc: %v", err) | ||
} | ||
var devdoc interface{} | ||
if err := json.Unmarshal([]byte(info.Devdoc), &devdoc); err != nil { | ||
return nil, fmt.Errorf("solc: error reading dev doc: %v", err) | ||
} | ||
var userdoc, devdoc interface{} | ||
json.Unmarshal([]byte(info.Userdoc), &userdoc) | ||
json.Unmarshal([]byte(info.Devdoc), &devdoc) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What's the reasoning behind no longer checking the error here? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Because user can select which information should be included in the Since |
||
|
||
contracts[name] = &Contract{ | ||
Code: "0x" + info.Bin, | ||
RuntimeCode: "0x" + info.BinRuntime, | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know I've been telling you to reactivate
LangObjC
because Peter rejected my PR to remove it (it's alway's Peter's fault), this being said we should put a warning here that ObjC support is incomplete.