# Transfer method is not working, I am getting a returned error - "Gas Required"

**URL:** <https://forum.openzeppelin.com/t/transfer-method-is-not-working-i-am-getting-a-returned-error-gas-required/2487>\
**Category:** Support\
**Tags:** erc20\
**Created:** [March 18, 2020, 9:08am UTC](https://forum.openzeppelin.com/t/transfer-method-is-not-working-i-am-getting-a-returned-error-gas-required/2487 "2020-03-18T09:08:01Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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:** [March 19, 2020, 9:10am UTC](https://forum.openzeppelin.com/t/transfer-method-is-not-working-i-am-getting-a-returned-error-gas-required/2487/4 "2020-03-19T09:10:58Z")

</div>

Hi @dinis174,

Looking at your code, you have set a total supply of tokens but didn't assign any tokens to any account, nor do you have a way to mint any tokens. When you try to call `transfer` it fails due to having a balance of 0.

I assume you deployed your token using Remix.

You may want to look at the following example and try deploying to a public testnet:

> [@Deploy a simple ERC20 token in Remix](https://forum.openzeppelin.com/t/deploy-a-simple-erc20-token-in-remix/1203):
>
> I have been using [Remix](https://remix.ethereum.org/) for really quick contracts rather than spinning up a Truffle or a Hardhat project (both of which are still pretty quick to do). Remix supports importing via GitHub. See the documentation for details: [https://remix-ide.readthedocs.io/en/latest/import.html](https://remix-ide.readthedocs.io/en/latest/import.html) This makes it easy to import OpenZeppelin Contracts. warning Note: You should only use code published in an official release of OpenZeppelin Contracts, the latest release is [3.4](https://github.com/OpenZeppelin/openzeppelin-contracts/releases/tag/v3.4.0). When importing via GitHub on Remix …

---

_[View the full topic](https://forum.openzeppelin.com/t/transfer-method-is-not-working-i-am-getting-a-returned-error-gas-required/2487)._
