Skip to main content
added 110 characters in body
Source Link
Tony Dang
  • 2.2k
  • 2
  • 10
  • 16

Basically correct, but you need to set initial balance for owner also and from the beginning, the balance of owner equal to total supply. Total supply is nothing if you dont handle the token balance for each account/address in your smart contract.

for more detail, you can refer to openzeppelin template code

https://github.com/OpenZeppelin/openzeppelin-solidity/blob/master/contracts/token/ERC20/StandardToken.sol

Basically correct, but you need to set initial balance for owner also and from the beginning, the balance of owner equal to total supply.

for more detail, you can refer to openzeppelin template code

https://github.com/OpenZeppelin/openzeppelin-solidity/blob/master/contracts/token/ERC20/StandardToken.sol

Basically correct, but you need to set initial balance for owner also and from the beginning, the balance of owner equal to total supply. Total supply is nothing if you dont handle the token balance for each account/address in your smart contract.

for more detail, you can refer to openzeppelin template code

https://github.com/OpenZeppelin/openzeppelin-solidity/blob/master/contracts/token/ERC20/StandardToken.sol

Source Link
Tony Dang
  • 2.2k
  • 2
  • 10
  • 16

Basically correct, but you need to set initial balance for owner also and from the beginning, the balance of owner equal to total supply.

for more detail, you can refer to openzeppelin template code

https://github.com/OpenZeppelin/openzeppelin-solidity/blob/master/contracts/token/ERC20/StandardToken.sol