# 가스비가 1000000으로 고정되어 변경이 되지 않습니다

**URL:** <https://devforum.kaia.io/t/topic/5495>\
**Category:** Kaia\
**Tags:** caver-js, smart-contract, klaytn\
**Created:** [6월 18, 2022, 4:14오후 UTC](https://devforum.kaia.io/t/topic/5495 "2022-06-18T16:14:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![testK](https://avatars.discourse-cdn.com/v4/letter/t/87869e/32.png) [@testK](https://devforum.kaia.io/u/testK)\
**Post date:** [6월 18, 2022, 4:14오후 UTC](https://devforum.kaia.io/t/topic/5495/1 "2022-06-18T16:14:09Z")

</div>

A 지갑에서 B, C, D…등의 지갑으로 토큰을 전송할 때 1000000 가스비를 오버하는 경우가 있어 에러가 나는 것을 해결하고자 가스비 리미트를 100000000으로 코드상에서 변경하여 전송을 하였으나 에러가 동일하게 발생하였고 클레이튼스코프에서 확인시에도 가스리미트가 1000000으로 되어있는 것을 확인했습니다.

이 부분을 해결하려면 어떻게 처리해야하는지 확인 부탁 드립니다.

---

<div class="post-metadata">

**Author:** ![Denver](https://yyz1.discourse-cdn.com/flex035/user_avatar/devforum.kaia.io/denver/32/557_2.png) [@Denver](https://devforum.kaia.io/u/Denver)\
**Post date:** [6월 20, 2022, 12:21오전 UTC](https://devforum.kaia.io/t/topic/5495/2 "2022-06-20T00:21:58Z")

</div>

@testK

안녕하세요.  
어떤 코드를 사용하셔서 전송하셨는지 그리고 클레이튼 스코프에서 확인한 Tx 링크 등 상세 내용 첨부를 부탁드립니다.  
[The posting guideline of Caver - #2](https://devforum.kaia.io/t/the-posting-guideline-of-caver/3207/2) 을 참고해주셔서 질문 내용 좀 더 보완 부탁드려요.

질문을 하실 때 **“답변자가 질문자 분의 문제를 최대한 빠르게 정확하게 파악하고 대응하려면 어떻게 해야할까?”** 에 대해 고민해보시고 질문을 작성해주시면 그러지 않을 때보다 좀 더 빠르고 정확한 답변을 받으실 수 있을 거예요 🙂

---

<div class="post-metadata">

**Author:** ![testK](https://avatars.discourse-cdn.com/v4/letter/t/87869e/32.png) [@testK](https://devforum.kaia.io/u/testK)\
**Post date:** [6월 20, 2022, 1:38오전 UTC](https://devforum.kaia.io/t/topic/5495/3 "2022-06-20T01:38:05Z")

</div>

현재 사용하고 있는 caver-js 버전은 1.8.2-rc.2 버전으로 입니다.

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/klaytn/original/2X/4/45f35831df2672d41dfa48a2ef1db5a4c51d3fcc.png)

에러가 발생한 TX 링크 입니다.

> **[Klaytnscope](https://scope.klaytn.com/tx/0x1fdfdb3710371d89af402fa05c81b1e8b60f55ec341f8f84307b16eefa249c82?tabId=internalTx)**
>
> Klaytnscope allows you to find data by monitoring network health and statistics of Klaytn as well as profiling blocks and transactions on Klaytn.

감사합니다.

---

<div class="post-metadata">

**Author:** ![Denver](https://yyz1.discourse-cdn.com/flex035/user_avatar/devforum.kaia.io/denver/32/557_2.png) [@Denver](https://devforum.kaia.io/u/Denver)\
**Post date:** [6월 20, 2022, 1:59오전 UTC](https://devforum.kaia.io/t/topic/5495/4 "2022-06-20T01:59:54Z")

</div>

@testK

주신 Tx 링크를 확인해보았는데요, 아래의 사진에서 보시는 것처럼 트랜잭션이 처리가 안된 이유는 Caller가 해당 함수에 대한 호출권한이 없어서 에러가나는 것으로 보입니다.

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/klaytn/original/2X/7/7c840101f69eda684cdc743946cdbbc7257d7ed8.png)

또한 `1000000` gas 를 오버하는 경우가 있다고 하셨는데, 스코프에서 보시는 것처럼 실제 사용된 gas는 `74,148`(= Gas Used 필드값) 입니다. 정확하게 원인을 파악하신 게 맞을까요?

gas limit 을 이미 `1000000` 으로 충분히 여유를 두신 상황이고 실제 사용된 gas는 `74,148` 이므로 이 부분은 원인을 잘못 파악하신 거 같습니다.  
스크린 샷의 revert 구문을 보시고 왜 에러가 났는지 디버깅 해보시는 게 좋을 거 같습니다.

---

<div class="post-metadata">

**Author:** ![testK](https://avatars.discourse-cdn.com/v4/letter/t/87869e/32.png) [@testK](https://devforum.kaia.io/u/testK)\
**Post date:** [6월 20, 2022, 3:24오전 UTC](https://devforum.kaia.io/t/topic/5495/5 "2022-06-20T03:24:43Z")

</div>

알려주신 부분이 맞는 듯 하네요.

빠른 답변 감사드립니다 ^^
