• 카테고리

    질문 & 답변
  • 세부 분야

    블록체인

  • 해결 여부

    미해결

deployedcontract 에러

19.07.04 19:58 작성 조회수 147

0

cmd 창에 아래와같이 입력했을 때

ReferenceError: bytecode is not defined 라고 뜹니다.

'bytecode'를 따로 선언해 주어야 하나요?

강의에서는 따로 선언해주지 않았는데 ... 의문이 듭니다ㅠㅠ

deployedcontract.deploy({ 

data: bytecode,

argumetns:[['Rama', 'Nick', 'Jose'].map(name=> web3.toAscii(name))]}).send({

  from: '0x90d174ccddd87338951e071dc24da273cf9c9eeb',

  gas: 150000,

  gasPrice: web3.utils.toWei('0.00003','ether')

  }).then((newcontractInstance)=>{

  deployedcontract.options.address = newcontractInstance.options.address;

  })

 

답변 1

답변을 작성해보세요.

0

장윤경님의 프로필

장윤경

2022.02.05

저도 궁금합니다. 그리고 왜 강의화면에서 vim 창으로 따로 나눠서 보여주는지도 이해가 안가네요ㅠ