Skip to content

Conversation

@d-xo
Copy link
Contributor

@d-xo d-xo commented Sep 21, 2021

Description

There was an undocumented change in the accepted format for the libraries key in the input.json in solc 0.7. It seems as though the format that we were using was only working by accident.

This PR updates dapp mk-standard-json to use the expected format for library specifiers.

This fixes #802

Checklist

  • tested locally
  • added automated tests
  • updated the docs
  • updated the changelog

There was an undocumented change in the accepted format for the
`libraries` key in the input.json in solc 0.7. It seems as though the
format that we were using was only working by accident.

This PR updates `dapp mk-standard-json` to use the expected format for
library specifiers.
library A {
function f(uint x) public returns (uint256) {
return x * 2;
function f(uint128 x) public returns (uint256) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

changes to this file are just to make it work with both 0.6.7 and 0.8.6

@MrChico
Copy link
Member

MrChico commented Sep 21, 2021

good catch

@d-xo d-xo merged commit 0bccaa3 into master Sep 21, 2021
@d-xo d-xo deleted the fix-lib-linking branch September 21, 2021 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

hevm: invalid character at offset

3 participants