klaytn contract github에서 GitHub - klaytn/klaytn-contracts
소스를 받은 후에 KAS console에서 생성한 accessKeyId, secretAccessKey를 truffle-config.js에 넣고 아래 명령을 치면 에러가 발생합니다.
truffle deploy --network kasBaobab --reset
어떤 부분이 문제가 있는지 확인 부탁드립니다.
아래와 같이 baobab으로는 잘 되는데요 KAS 를 이용하려면 추가적인 설정이 필요한 건가요?
truffle deploy --network baobab --reset
Compiling your contracts…
Compiling ./contracts/Migrations.sol
Compiling ./contracts/YourTokenFlatten.sol
Artifacts written to build/contracts
Compiled successfully using:
- solc: 0.5.6+commit.b259423e.Emscripten.clang
Starting migrations…
Network name: ‘kasBaobab’
Network id: 1001
Block gas limit: 999999999999 (0xe8d4a50fff)
1_initial_migration.js
Deploying ‘Migrations’
node_modules/caver-js/packages/caver-core-helpers/src/errors.js:92
return new Error(message)
^
Error: PollingBlockTracker - encountered an error while attempting to update latest block:
Error: Invalid JSON RPC response: “”
at Object.InvalidResponse (node_modules/caver-js/packages/caver-core-helpers/src/errors.js:92:16)
at XMLHttpRequest.request.onreadystatechange (node_modules/caver-js/packages/caver-core-requestmanager/caver-providers-http/src/index.js:118:32)
at XMLHttpRequestEventTarget.dispatchEvent (node_modules/xhr2-cookies/xml-http-request-event-target.ts:44:13)
at XMLHttpRequest._setReadyState (node_modules/xhr2-cookies/xml-http-request.ts:219:8)
at XMLHttpRequest._onHttpResponseEnd (node_modules/xhr2-cookies/xml-http-request.ts:345:8)
at IncomingMessage. (node_modules/xhr2-cookies/xml-http-request.ts:311:39)
at IncomingMessage.emit (events.js:327:22)
at endReadableNT (_stream_readable.js:1327:12)
at processTicksAndRejections (internal/process/task_queues.js:80:21)
at PollingBlockTracker._performSync (node_modules/eth-block-tracker/src/polling.js:51:24)
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:93:5)
UnhandledRejections detected
Promise {
Error: Invalid JSON RPC response: “”
at Object.InvalidResponse (node_modules/caver-js/packages/caver-core-helpers/src/errors.js:92:16)
at XMLHttpRequest.request.onreadystatechange (node_modules/caver-js/packages/caver-core-requestmanager/caver-providers-http/src/index.js:118:32)
at XMLHttpRequestEventTarget.dispatchEvent (node_modules/xhr2-cookies/xml-http-request-event-target.ts:44:13)
at XMLHttpRequest._setReadyState (node_modules/xhr2-cookies/xml-http-request.ts:219:8)
at XMLHttpRequest._onHttpResponseEnd (node_modules/xhr2-cookies/xml-http-request.ts:345:8)
at IncomingMessage. (node_modules/xhr2-cookies/xml-http-request.ts:311:39)
at IncomingMessage.emit (events.js:327:22)
at endReadableNT (_stream_readable.js:1327:12)
at processTicksAndRejections (internal/process/task_queues.js:80:21)
} Error: Invalid JSON RPC response: “”
at Object.InvalidResponse (node_modules/caver-js/packages/caver-core-helpers/src/errors.js:92:16)
at XMLHttpRequest.request.onreadystatechange (node_modules/caver-js/packages/caver-core-requestmanager/caver-providers-http/src/index.js:118:32)
at XMLHttpRequestEventTarget.dispatchEvent (node_modules/xhr2-cookies/xml-http-request-event-target.ts:44:13)
at XMLHttpRequest._setReadyState (node_modules/xhr2-cookies/xml-http-request.ts:219:8)
at XMLHttpRequest._onHttpResponseEnd (node_modules/xhr2-cookies/xml-http-request.ts:345:8)
at IncomingMessage. (node_modules/xhr2-cookies/xml-http-request.ts:311:39)
at IncomingMessage.emit (events.js:327:22)
at endReadableNT (_stream_readable.js:1327:12)
at processTicksAndRejections (internal/process/task_queues.js:80:21)