Hỏi & Đáp
hello.say() is not a function
버전이 달라서 저는 지금 마이그레이트를 하면 프롬프트에 이렇게 떠서 HelloWorld를 디플로이 했을 시 생긴 컨트랙트주소 부분을 사용해야 언디파인드가 되고 hello.say()를 했을 시 문자열이 잘나타났습니다! 혹시 저와 같은 버전으로 하고 계신분들 참고해주세요! Compiling your contracts... =========================== > Everything is up to date, there is nothing to compile. Starting migrations... ====================== > Network name: 'development' > Network id: 5777 > Block gas limit: 6721975 (0x6691b7) 1_initial_migration.js ====================== Deploying 'Migrations' ---------------------- > transaction hash: 0xa83a42953525bba41c94b902b3bcfa09dc90fcf3a18a77f66b52b797cefc7758 > Blocks: 0 Seconds: 0 > contract address: 0x5B6c3496D20404A3e0755487B2d809D7174E2cC9 > block number: 1 > block timestamp: 1614761582 > account: 0xFfc1DC506c8D47144DBA97435b102FaE4c5BD39b > balance: 99.99616114 > gas used: 191943 (0x2edc7) > gas price: 20 gwei > value sent: 0 ETH > total cost: 0.00383886 ETH > Saving migration to chain. > Saving artifacts ------------------------------------- > Total cost: 0.00383886 ETH 2_hello_deploy.js ================= Deploying 'HelloWorld' ---------------------- > transaction hash: 0xe3769cf3541753b8ad4a76c5a52da9926368a39cd5c1e7a9cf9a72dfc1a162c4 > Blocks: 0 Seconds: 0 > contract address: 0xe5A71c2b65D2BB74D25121EBfd73C979854F086e > block number: 3 > block timestamp: 1614761583 > account: 0xFfc1DC506c8D47144DBA97435b102FaE4c5BD39b > balance: 99.989001 > gas used: 315669 (0x4d115) > gas price: 20 gwei > value sent: 0 ETH > total cost: 0.00631338 ETH > Saving migration to chain. > Saving artifacts ------------------------------------- > Total cost: 0.00631338 ETH Summary ======= > Total deployments: 2 > Final cost: 0.01015224 ETH
- Lượt thích
- 2
- Số bình luận
- 3
- Lượt xem
- 316

