# Following Step by Step Tutorial for Hardhat and get Uncaught ProviderError: out of gas

**URL:** <https://forum.openzeppelin.com/t/following-step-by-step-tutorial-for-hardhat-and-get-uncaught-providererror-out-of-gas/6785>\
**Category:** Support\
**Created:** [April 5, 2021, 8:00pm UTC](https://forum.openzeppelin.com/t/following-step-by-step-tutorial-for-hardhat-and-get-uncaught-providererror-out-of-gas/6785 "2021-04-05T20:00:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yoshiko](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/yoshiko/32/6858_2.png) [@Yoshiko](https://forum.openzeppelin.com/u/Yoshiko)\
**Post date:** [April 5, 2021, 8:00pm UTC](https://forum.openzeppelin.com/t/following-step-by-step-tutorial-for-hardhat-and-get-uncaught-providererror-out-of-gas/6785/1 "2021-04-05T20:00:52Z")

</div>

I’m following the tutorial over at  
[Step by Step Tutorial for Hardhat](https://forum.openzeppelin.com/t/openzeppelin-upgrades-step-by-step-tutorial-for-hardhat/3580)

It’s working great, until I come to the console part.

When I do

`(await box.retrieve()).toString()`

It gives me the error

```auto
Uncaught ProviderError: out of gas
    at EthersProviderWrapper.send (C:\Users\Nano\Documents\Nano\Software\Crypto Projects\ProxyContractTest\node_modules\@nomiclabs\hardhat-ethers\src\internal\ethers-provider-wrapper.ts:13:20)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at LocalAccountsProvider.request (C:\Users\Nano\Documents\Nano\Software\Crypto Projects\ProxyContractTest\node_modules\hardhat\src\internal\core\providers\accounts.ts:131:34)
    at HttpProvider.request (C:\Users\Nano\Documents\Nano\Software\Crypto Projects\ProxyContractTest\node_modules\hardhat\src\internal\core\providers\http.ts:46:19)

```

I’ve tried a lot of different addresses to figure out what should go in  
`const box = await Box.attach("0xA9669fc9eacbf9e165F43358caD0AC85801DC8a5")`  
I’ve tried my proxy address, the open zeppelin upgradable address, and the actual contract address that I’m sending through the proxy.  
It seems like none of it works.

I can get my tests to past and I can see it on the test network perfectly fine.

> **[AdminUpgradeabilityProxy | 0xA9669fc9eacbf9e165F43358caD0AC85801DC8a5](https://rinkeby.etherscan.io/address/0xA9669fc9eacbf9e165F43358caD0AC85801DC8a5#code)**
>
> The Contract Address 0xA9669fc9eacbf9e165F43358caD0AC85801DC8a5 page allows users to view the source code, transactions, balances, and analytics for the contract address. Users can also interact and make transactions to the contract directly on...

> **[AdminUpgradeabilityProxy | 0xF66af346a08b144a6664654823c34F63100901B5](https://rinkeby.etherscan.io/address/0xF66af346a08b144a6664654823c34F63100901B5#code)**
>
> The Contract Address 0xF66af346a08b144a6664654823c34F63100901B5 page allows users to view the source code, transactions, balances, and analytics for the contract address. Users can also interact and make transactions to the contract directly on...

Using the proxy read/write I can see that my store procedures are working fine and I can get the 42, but it doesn’t work in console. It says out of gas, but my wallet has gas, otherwise I would not be able to deploy the contract. Is there some other wallet that I need to load up with gas when using the console?

What gives? Perhaps the console part is out of date somehow?

 ![problem](https://us1.discourse-cdn.com/flex022/uploads/zeppelin/original/2X/9/98f59737873d728079025825625b21072d4c1909.png)

---

<div class="post-metadata">

**Author:** ![Yoshiko](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/yoshiko/32/6858_2.png) [@Yoshiko](https://forum.openzeppelin.com/u/Yoshiko)\
**Post date:** [April 6, 2021, 12:49am UTC](https://forum.openzeppelin.com/t/following-step-by-step-tutorial-for-hardhat-and-get-uncaught-providererror-out-of-gas/6785/2 "2021-04-06T00:49:27Z")

</div>

Looks like it was an issue with Gas upping in Rinkeby.  
I changed my settings to this

```auto
TESTrinkeby: {
      url: alchemyapikeyrinkeby,
      accounts: [testwalpkey],
      gas: 10000000
    }

```

Adding an extra zero to the gas made it work.

---

<div class="post-metadata">

**Author:** ![abcoathup](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/abcoathup/32/415_2.png) [@abcoathup](https://forum.openzeppelin.com/u/abcoathup)\
**Post date:** [April 6, 2021, 10:36am UTC](https://forum.openzeppelin.com/t/following-step-by-step-tutorial-for-hardhat-and-get-uncaught-providererror-out-of-gas/6785/3 "2021-04-06T10:36:03Z")

</div>

Hi @Yoshiko,

Welcome to the community 👋

Glad you were able to resolve. Thanks for sharing your solution.
