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

support multi contract in a file #9

Open
nakajo2011 opened this issue Jan 23, 2019 · 1 comment
Open

support multi contract in a file #9

nakajo2011 opened this issue Jan 23, 2019 · 1 comment

Comments

@nakajo2011
Copy link
Owner

nakajo2011 commented Jan 23, 2019

problem contract file example:

contract A {
  function hoge() public returns(uint) {
  return 1;
  }
}

contract B {
  function fuga() public returns(uint) {
  return 2;
  }
}

Like this. can not capturing correct filename if multi contract define in a file.

@nakajo2011
Copy link
Owner Author

artifact json files is separated, but file index is not incremental in sourceMap.
Solution idea bellow:

  1. mapping key change to what filename:contractName instead of filename only.
  2. update finding process that artifact info from bytecode, and update mapping process of filename.

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

No branches or pull requests

1 participant