# Gas limit is not in the acceptable range when creating account on testnet

**URL:** <https://forum.flow.com/t/gas-limit-is-not-in-the-acceptable-range-when-creating-account-on-testnet/2344>\
**Category:** Uncategorized\
**Created:** [August 28, 2021, 12:08pm UTC](https://forum.flow.com/t/gas-limit-is-not-in-the-acceptable-range-when-creating-account-on-testnet/2344 "2021-08-28T12:08:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![newbdez33](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.flow.com/newbdez33/32/426_2.png) [@newbdez33](https://forum.flow.com/u/newbdez33)\
**Post date:** [August 28, 2021, 12:08pm UTC](https://forum.flow.com/t/gas-limit-is-not-in-the-acceptable-range-when-creating-account-on-testnet/2344/1 "2021-08-28T12:08:13Z")

</div>

When I try to create an account on testate using this command:

> flow accounts create --network testnet --signer testnet-account --key 9d3d48ae994dc34681f3e805d48928c5da3c8985c592a243b8e84e42fa1d4a5ab3d3e21132964a32da8c9665bf2c46854a21b76eddc577b423ec58b80ab229a0

I got this error:

> Transaction ID: a5220ed84ab174d5b476fece28bb0a5a80db6e165bd09db62b71293ef7b6fa84  
> ❌ Invalid argument: invalid transaction: transaction gas limit (0) is not in the acceptable range (min: 1, max: 9999)

How can I setup gas limit?

---

<div class="post-metadata">

**Author:** ![amarsh.anand](https://avatars.discourse-cdn.com/v4/letter/a/74df32/32.png) [@amarsh.anand](https://forum.flow.com/u/amarsh.anand)\
**Post date:** [August 29, 2021, 9:36am UTC](https://forum.flow.com/t/gas-limit-is-not-in-the-acceptable-range-when-creating-account-on-testnet/2344/2 "2021-08-29T09:36:47Z")

</div>

Any luck? I am getting the same.  
Not happening running against local.  
In `truffle.js`, there is a `gas` parameter to specify this. Was hoping `flow.json` to have the same.  
[https://docs.onflow.org/flow-cli/send-transactions](https://docs.onflow.org/flow-cli/send-transactions) does specify a `--gas` option, but I dont know where to stick it really.

---

<div class="post-metadata">

**Author:** ![newbdez33](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.flow.com/newbdez33/32/426_2.png) [@newbdez33](https://forum.flow.com/u/newbdez33)\
**Post date:** [August 30, 2021, 2:23am UTC](https://forum.flow.com/t/gas-limit-is-not-in-the-acceptable-range-when-creating-account-on-testnet/2344/3 "2021-08-30T02:23:18Z")

</div>

still no luck. other ppl met the same as well.

> <https://github.com/onflow/flow-cli/issues/373>
>
> Problem
> Unable to deploy contracts to testnet using flow-cli. Tried on both v0.27 and v0.28.
> Steps to Reproduce
> To Reproduce:
> flow project init
> Add any contract...

---

<div class="post-metadata">

**Author:** ![lebster](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.flow.com/lebster/32/536_2.png) [@lebster](https://forum.flow.com/u/lebster)\
**Post date:** [August 30, 2021, 2:21pm UTC](https://forum.flow.com/t/gas-limit-is-not-in-the-acceptable-range-when-creating-account-on-testnet/2344/4 "2021-08-30T14:21:24Z")

</div>

I think it could be closed due to [Add Gas Limit Default by sideninja · Pull Request #374 · onflow/flow-cli · GitHub](https://github.com/onflow/flow-cli/pull/374), I have it worked with an updated flow-cli.

---

<div class="post-metadata">

**Author:** ![amarsh.anand](https://avatars.discourse-cdn.com/v4/letter/a/74df32/32.png) [@amarsh.anand](https://forum.flow.com/u/amarsh.anand)\
**Post date:** [August 30, 2021, 10:25pm UTC](https://forum.flow.com/t/gas-limit-is-not-in-the-acceptable-range-when-creating-account-on-testnet/2344/5 "2021-08-30T22:25:50Z")

</div>

Yup. Its fixed 🙂
