-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix deserialization error resulting from Blockscout omitting "Optimiz…
…ationRuns" field when optimization was not used (#23) Blockscout seems to omit the "OptimizationRuns" field in the "getSourceCode" response when the optimizer has not been used, resulting in a serde deserialization error in the current implementation. See for example the response for [this contract](https://eth.blockscout.com/api?apikey=test&module=contract&action=getsourcecode&address=0xDef1C0ded9bec7F1a1670819833240f027b25EfF). To avoid this I added a default (0) to the respective serde model field.
- Loading branch information
Showing
2 changed files
with
24 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters