Caver-java-ext-kas 이용시 오류

에 있는 KIP17 mint코드를 실행해보고 있는데 아래와 같은 오류가 발생하였습니다.

17:15:39.689 [main] DEBUG org.web3j.protocol.http.HttpService - → POST https://node-api.klaytnapi.com/v1/klaytn
17:15:39.693 [main] DEBUG org.web3j.protocol.http.HttpService - Content-Type: application/json; charset=utf-8
17:15:39.693 [main] DEBUG org.web3j.protocol.http.HttpService - Content-Length: 763
17:15:39.693 [main] DEBUG org.web3j.protocol.http.HttpService - Authorization: Basic XXXXXXXXX
17:15:39.693 [main] DEBUG org.web3j.protocol.http.HttpService - x-chain-id: 1001
17:15:39.693 [main] DEBUG org.web3j.protocol.http.HttpService -
17:15:39.693 [main] DEBUG org.web3j.protocol.http.HttpService - {“jsonrpc”:“2.0”,“method”:“klay_estimateGas”,“params”:[{“from”:“0x166272e821dab0a5d1d560e8eb2a6d751da47e63”,“to”:“0x8d25aC131101B07B3EB4F25933aA8Fb548463D30”,“data”:“0x50bb4e7f000000000000000000000000166272e821dab0a5d1d560e8eb2a6d751da47e6300000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000008668747470733a2f2f73332e61702d6e6f727468656173742d322e616d617a6f6e6177732e636f6d2f6d6f62696c652d6465762e66696c652d73746f72652e61702d6e6f727468656173742d322f746f6461792f313633303535353836383539342d32383766373739656234653434313132616434373939303731623366393362312e6a7065670000000000000000000000000000000000000000000000000000”}],“id”:0}
17:15:39.693 [main] DEBUG org.web3j.protocol.http.HttpService - → END POST (763-byte body)
17:15:39.889 [main] DEBUG org.web3j.protocol.http.HttpService - ← 200 OK https://node-api.klaytnapi.com/v1/klaytn (195ms)
17:15:39.889 [main] DEBUG org.web3j.protocol.http.HttpService - content-length: 122
17:15:39.889 [main] DEBUG org.web3j.protocol.http.HttpService - content-type: application/json
17:15:39.889 [main] DEBUG org.web3j.protocol.http.HttpService - date: Wed, 15 Sep 2021 08:15:39 GMT
17:15:39.889 [main] DEBUG org.web3j.protocol.http.HttpService - server: istio-envoy
17:15:39.889 [main] DEBUG org.web3j.protocol.http.HttpService - vary: Origin
17:15:39.889 [main] DEBUG org.web3j.protocol.http.HttpService - x-envoy-upstream-service-time: 6
17:15:39.889 [main] DEBUG org.web3j.protocol.http.HttpService -
17:15:39.889 [main] DEBUG org.web3j.protocol.http.HttpService - {“jsonrpc”:“2.0”,“id”:0,“error”:{“code”:-32000,“message”:“gas required exceeds allowance or always failing transaction”}}

java.io.IOException: gas required exceeds allowance or always failing transaction
at com.klaytn.caver.contract.ContractMethod.estimateGas(ContractMethod.java:1097)
at com.klaytn.caver.contract.ContractMethod.estimateGas(ContractMethod.java:510)
at com.klaytn.caver.kct.kip17.KIP17.estimateGas(KIP17.java:1346)
at com.klaytn.caver.kct.kip17.KIP17.determineSendOptions(KIP17.java:1293)
at com.klaytn.caver.kct.kip17.KIP17.mintWithTokenURI(KIP17.java:1070)
at ~~

원인을 확인했습니다. 배포가 잘못되어 KIP17이 아니라 KIP7이 배포되었습니다. 배포 편집 파일 저장이 안된상태였습니다.
감사합니다.

1개의 좋아요