강의

멘토링

커뮤니티

인프런 커뮤니티 질문&답변

Logan님의 프로필 이미지
Logan

작성한 질문수

Ethereum 실전! 초보자를 위한 Lottery Dapp 개발

Truffle 을 활용한 스마트 컨트랙트 상호작용

안녕하세요. Visibility for constructor is ignored. If you want the contract to be non-deployable, making it "abstract" is sufficient.

작성

·

246

1

안녕하세요 강사님. 질문드릴게 있어요 ㅜ.

Lottery.sol을 만들고 생성자 입력시

constructor() public 부분에 밑줄이 나오고 해당 문제가 보여지는데 이거 문제 없는 건가요?

Visibility for constructor is ignored. If you want the contract to be non-deployable, making it "abstract" is sufficient.

그리고 Migrations.sol 파일에 

modifier restricted() {

    require(

      msg.sender == owner,

      "This function is restricted to the contract's owner"

    );

    _;

  }

처럼 선생님과 다르게 나오네요 ㅜ

마지막으로 이 2가지 때문인지는 모르지만 Lottery.sol을 다 입력 후 truffle migrate --reset 입력하면 사용된 가스량이 강의처럼 변경 되어야 하는데. 처음 truffle 실행할 때와 동일한데 무슨 문제일까요? ㅜ 감사합니다.

답변

답변을 기다리고 있는 질문이에요
첫번째 답변을 남겨보세요!
Logan님의 프로필 이미지
Logan

작성한 질문수

질문하기