작성
·
343
1
안녕하세요 에러가 발생했는데 도저히 원인을 알 수가없어서 질문 남깁니다.
1_initial_migration.js Deploying 중에 발생합니다.
> transaction hash: 0x10b818d4bbbe7658e0a4ab3042b072c716ceb88c50888733ec38182e30e89afb
⠦ Blocks: 0 Seconds: 0
Error: Given value "TxTypeLegacyTransaction" is not a valid hex string.
at Object.hexToNumber (/usr/local/lib/node_modules/truffle/build/webpack:/node_modules/web3-utils/lib/utils.js:205:1)
at Method.outputTransactionFormatter (/usr/local/lib/node_modules/truffle/build/webpack:/node_modules/web3-core-helpers/lib/formatters.js:214:1)
at Method.web3.eth.getTransaction.method.outputFormatter (/usr/local/lib/node_modules/truffle/build/webpack:/packages/interface-adapter/dist/shim/overloads/ethereum.js:52:1)
at Method.formatOutput (/usr/local/lib/node_modules/truffle/build/webpack:/node_modules/web3-eth/node_modules/web3-core-method/lib/index.js:146:1)
at sendTxCallback (/usr/local/lib/node_modules/truffle/build/webpack:/node_modules/web3-eth/node_modules/web3-core-method/lib/index.js:522:1)
at /usr/local/lib/node_modules/truffle/build/webpack:/node_modules/web3/node_modules/web3-core-requestmanager/lib/index.js:307:1
at /Users/h662/Node/bapp/crypto-ytt-starter/node_modules/@trufflesuite/web3-provider-engine/index.js:240:9
at /Users/h662/Node/bapp/crypto-ytt-starter/node_modules/async/internal/once.js:12:16
at replenish (/Users/h662/Node/bapp/crypto-ytt-starter/node_modules/async/internal/eachOfLimit.js:61:25)
at /Users/h662/Node/bapp/crypto-ytt-starter/node_modules/async/internal/eachOfLimit.js:71:9
at eachLimit (/Users/h662/Node/bapp/crypto-ytt-starter/node_modules/async/eachLimit.js:43:36)
at /Users/h662/Node/bapp/crypto-ytt-starter/node_modules/async/internal/doLimit.js:9:16
at end (/Users/h662/Node/bapp/crypto-ytt-starter/node_modules/@trufflesuite/web3-provider-engine/index.js:217:5)
at /Users/h662/Node/bapp/crypto-ytt-starter/node_modules/truffle-hdwallet-provider-klaytn/dist/subproviders/provider.js:19:5
at XMLHttpRequest.request.onreadystatechange (/Users/h662/Node/bapp/crypto-ytt-starter/node_modules/caver-js/packages/caver-core-requestmanager/caver-providers-http/src/index.js:119:13)
at XMLHttpRequestEventTarget.dispatchEvent (/Users/h662/Node/bapp/crypto-ytt-starter/node_modules/xhr2-cookies/xml-http-request-event-target.ts:44:13)
at XMLHttpRequest._setReadyState (/Users/h662/Node/bapp/crypto-ytt-starter/node_modules/xhr2-cookies/xml-http-request.ts:219:8)
at XMLHttpRequest._onHttpResponseEnd (/Users/h662/Node/bapp/crypto-ytt-starter/node_modules/xhr2-cookies/xml-http-request.ts:345:8)
at IncomingMessage.<anonymous> (/Users/h662/Node/bapp/crypto-ytt-starter/node_modules/xhr2-cookies/xml-http-request.ts:311:39)
at IncomingMessage.emit (events.js:327:22)
at endReadableNT (internal/streams/readable.js:1327:12)
at processTicksAndRejections (internal/process/task_queues.js:80:21)
노드 모듈 같은거는 캐시 날린다음 전부 재설치 해봤는데도 같은 에러가 발생합니다.
구글링중 관련에러가 있어서 주소 공유남깁니다.
https://forum.klaytn.com/t/given-value-txtypelegacytransaction-is-not-a-valid-hex-string/1574/5
감사합니다!
답변 1
2
제가 알기로 트러플 버전이달라서 그런걸로 알고있습니다.
일단 npm uninstall -g truffle 해주시고요
npm install -g truffle@5.1.23 으로 해주시면 될것같습니다. 공식 포럼에 나온답변입니다.