오랜만에 baobab testnet에 저장된 데이터를 조회할 때 out of gas가 뜹니다.
getHashCont : function(c_code){
return new Promise(function(resolve, reject){
agContract.methods.getContHash(c_code).call().then(function(name){
if(name){
console.log("bmodul: "+name);
resolve(name);
}else{
console.log("No value in the blockchain");
}
reject(new Error("No value in the blockchain."));
})
});
}
를 통해 데이터를 불러올 때
아래의 에러가 뜹니다....
Uncaught (in promise) Error: Returned values aren't valid, did it run Out of Gas?
at ABICoder.decodeParameters (index.js:220)
at Contract._decodeMethodReturn (index.js:796)
at Method.outputFormatter (index.js:1347)
at _formatOutput (index.js:216)
at Method.formatOutput (index.js:223)
at eval (index.js:270)
at eval (index.js:218)
at XMLHttpRequest.request.onreadystatechange (index.js:140)
at XMLHttpRequestEventTarget.dispatchEvent (xml-http-request-event-target.js:34)
at XMLHttpRequest._setReadyState (xml-http-request.js:208)
그리고, 다시 truffle을 deploy하려고 할 때,
truffle : 'truffle' 용어가 cmdlet, 함수, 스크립트 파일 또는 실행할 수 있는 프로그램 이름으로 인식되지 않습니
다. 이름이 정확한지 확인하고 경로가 포함된 경우 경로가 올바른지 검증한 다음 다시 시도하십시오.
위치 줄:1 문자:1
+ truffle
+ ~~~~~~~
+ CategoryInfo : ObjectNotFound: (truffle:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
이 오류가 뜹니다...
Answer 2
npm install 에러
0
507
0
truffle deploy --network klaytn
0
242
0
컴파일 에러
0
347
0
npm install 에러 납니다.
0
1026
1
npm install 삼일 내내 검색했는데 해결 못했습니다...
0
367
1
npm run dev 했는데
0
1051
2
deploy 실행파일
0
369
1
솔리디티 4.1.15 이상의 버전은 안되나요?
0
248
0
함수를 async를 사용하여 비동기로 작성한 이유가 궁금합니다.
2
335
0
truffle deploy에러 문의입니다 : >
0
428
0
IDE 인터페이스가 달라져 강좌를 계속하기 어렵습니다
3
451
3
실행이 안 됩니다.
0
304
2
truffle deploy --network klaytn 오류
0
291
2
아니..지금 쓰는거랑 아예 인터페이스가 다른데 강좌를 내리던가 해야할듯요
0
209
1
송금 이후 once transactionHash 쪽에서 에러 나는데 도움 부탁드려요.
0
201
0
유니티에서도 사용이 가능한가요?
0
256
1
강의 잘들었습니다. then은 되는데 on이 안되네요..
0
203
1
checkValidKeystore 함수 수정
1
189
0
invalid or does not take any parameters 오류 해결방법
1
454
1
컨트랙트 재배포 문의
0
362
1
정답 제출 및 클레이 받기 부분에서 질문있습니다.
0
167
1
npm install 에러 뜹니다. 방법 있으실까요?
0
719
1
truffle deploy --network klaytn 오류
0
209
1
상급강좌 설문조사
0
156
0

