truffle을 활용한 klaytn 개발 환경 설정을 진행해보고 있습니다.
solidity 예제 컨트랙 파일을 추가하고, private key 기준으로 truffle.config.js 파일을 작성하였는데요
baobab testnet 배포를 시도해보니 아래와 같은 네트워크 오류가 발생합니다.
truffle deploy --network testnet
추가로 설정을 진행해주어야 하는 것이 있을까요?
➜ hello-klaytn truffle deploy --network testnet
Compiling your contracts...
===========================
⠋ Fetching solc version list from solc-bin. Attempt #1Error: PollingBlockTracker - encountered an error while attempting to update latest block:
Error: getaddrinfo ENOTFOUND your.baobab.en.url
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:67:26)
at PollingBlockTracker._performSync (/Users/jordan.126/Sandbox/node_modules/eth-block-tracker/src/polling.js:51:24)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
UnhandledRejections detected
Promise {
<rejected> {
code: -32603,
message: 'getaddrinfo ENOTFOUND your.baobab.en.url',
data: { originalError: [Object] },
stack: 'Error: getaddrinfo ENOTFOUND your.baobab.en.url\n' +
' at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:67:26)'
}
} {
code: -32603,
message: 'getaddrinfo ENOTFOUND your.baobab.en.url',
data: {
originalError: {
errno: -3008,
code: 'ENOTFOUND',
syscall: 'getaddrinfo',
hostname: 'your.baobab.en.url'
}
},
stack: 'Error: getaddrinfo ENOTFOUND your.baobab.en.url\n' +
' at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:67:26)'
}
Promise {
<rejected> {
code: -32603,
message: 'getaddrinfo ENOTFOUND your.baobab.en.url',
data: { originalError: [Object] },
stack: 'Error: getaddrinfo ENOTFOUND your.baobab.en.url\n' +
' at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:67:26)'
}
} {
code: -32603,
message: 'getaddrinfo ENOTFOUND your.baobab.en.url',
data: {
originalError: {
errno: -3008,
code: 'ENOTFOUND',
syscall: 'getaddrinfo',
hostname: 'your.baobab.en.url'
}
},
stack: 'Error: getaddrinfo ENOTFOUND your.baobab.en.url\n' +
' at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:67:26)'
1 const HDWalletProvider = require("truffle-hdwallet-provider-klaytn");
}