Document를 참고하여
[배포된 스마트 컨트랙트의 함수] 호출 테스트 중입니다.
$ node test-klaytn.js 명령어를 실행하면 바이트코드는 정상적으로 확인되나, 아래와 같은 에러메시지가 보입니다.
해결방안 문의드립니다.^^;;
Error: Returned error: evm: execution reverted
at Object.ErrorResponse (/root/klaytn/node_modules/caver-js/packages/caver-core-helpers/src/errors.js:87:16)
at /root/klaytn/node_modules/caver-js/packages/caver-core-requestmanager/src/index.js:155:44
at XMLHttpRequest.request.onreadystatechange (/root/klaytn/node_modules/caver-js/packages/caver-core-requestmanager/caver-providers-http/src/index.js:122:13)
at XMLHttpRequestEventTarget.dispatchEvent (/root/klaytn/node_modules/xhr2-cookies/dist/xml-http-request-event-target.js:34:22)
at XMLHttpRequest._setReadyState (/root/klaytn/node_modules/xhr2-cookies/dist/xml-http-request.js:208:14)
at XMLHttpRequest._onHttpResponseEnd (/root/klaytn/node_modules/xhr2-cookies/dist/xml-http-request.js:318:14)
at IncomingMessage.<anonymous> (/root/klaytn/node_modules/xhr2-cookies/dist/xml-http-request.js:289:61)
at IncomingMessage.emit (node:events:402:35)
at endReadableNT (node:internal/streams/readable:1343:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21)