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

Have not added the contract itself #21

Closed
olegabr opened this issue Oct 15, 2019 · 4 comments · Fixed by #22
Closed

Have not added the contract itself #21

olegabr opened this issue Oct 15, 2019 · 4 comments · Fixed by #22

Comments

@olegabr
Copy link

olegabr commented Oct 15, 2019

First, the recommended npm run build-contracts command has failed:

$ npm run build-contracts

> ERC777iHomeCredits@1.0.0 build-contracts /home/olegabr/work/ERC777iHomeCredits
> sol-merger "./contracts/*.sol" ./build

,
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! ERC777iHomeCredits@1.0.0 build-contracts: `sol-merger "./contracts/*.sol" ./build`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the ERC777iHomeCredits@1.0.0 build-contracts script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/olegabr/.npm/_logs/2019-10-15T10_27_23_541Z-debug.log

I've worked it around with:

./node_modules/sol-merger/dist/bin/sol-merger.js "./contracts/*.sol" ./build

and it produces file in the build directory, and this file included all but the ERC777iHomeCredits contract definition. I've added it manually and verification succeeded.

@RyuuGan
Copy link
Owner

RyuuGan commented Oct 17, 2019

Hello @olegabr,

Can you send me the reproducable example of the contract that doesn't work?

@olegabr
Copy link
Author

olegabr commented Oct 19, 2019

@RyuuGan sure!

pragma solidity ^0.5.1;

import "openzeppelin-solidity/contracts/token/ERC777/ERC777.sol";

contract ERC777Test is ERC777(
  "Test",
  "TSX",
  new address[](0)
) {
  constructor() public {
    _mint(
      msg.sender,
      0x476Bb28Bc6D0e9De04dB5E19912C392F9a76535d,
      100000000000 * 10 ** uint256(decimals()),
      "",
      ""
    );
  }
}

@RyuuGan
Copy link
Owner

RyuuGan commented Oct 20, 2019

Should be fixed in 1.1.0

@olegabr
Copy link
Author

olegabr commented Oct 21, 2019

Thank you!

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 a pull request may close this issue.

2 participants