These are chat archives for ethereum/tutorials

29th
Mar 2016
John Frederic Kosanke
@kosanke
Mar 29 2016 12:12
I want my token to have a fixed and immutable supply. What is the best code to prevent the contract owner (or anyone else) from having the ability to increase the supply?
Makoto Inoue
@makoto
Mar 29 2016 15:45
@kosanke hello. I am also new but according to the tutorial it's the following code which let anyone increase the limit so no one can increase if you don't have the code (or am I misinterpreting your question?).
function mintToken(address target, uint256 mintedAmount) onlyOwner {
    balanceOf[target] += mintedAmount;  
    totalSupply += mintedAmount;
    Transfer(0, owner, mintedAmount);
    Transfer(owner, target, mintedAmount);
}
John Frederic Kosanke
@kosanke
Mar 29 2016 16:40
@@kosanke hello. I am also new but according to the tutorial it's the following code which let anyone increase the limit so no one can increase if you don't have the code (or am I misinterpreting your question?).
function mintToken(address target, uint256 mintedAmount) onlyOwner {
    balanceOf[target] += mintedAmount;  
    totalSupply += mintedAmount;
    Transfer(0, owner, mintedAmount);
    Transfer(owner, target, mintedAmount);
}
@makoto (Oops, I meant to just copy your name. Looks like I copied everything but.) So once the currency is issued, the code can't be changed, right?
Should I be calling the new version "version 2", or would that preserve the original code?
Makoto Inoue
@makoto
Mar 29 2016 19:45
@kosanke I have no idea how the versioning work. When I create the exaclty the same contract with same name with different version number, it just recognised as different token. btw, I am quite new too.
Screen Shot 2016-03-29 at 20.43.29.png
Makoto Inoue
@makoto
Mar 29 2016 20:22
hello. I just made a video walk through of the first part of the tutorial. https://medium.com/@makoto_inoue/ether-3-video-walk-through-of-your-first-smart-contracts-deployment-f4c36908f01 Hope it’s useful to someone
wildownes
@wildownes
Mar 29 2016 20:23
@makoto Sorry, but nothing exists here.
Find something interesting to read. Check the site status.
still uploading perhaps?
Makoto Inoue
@makoto
Mar 29 2016 20:24
ummm, let me check
wildownes
@wildownes
Mar 29 2016 20:25
that works!
i'll check it out! thanks for making
Makoto Inoue
@makoto
Mar 29 2016 20:25
Looks like I omitted last ‘f’ character.
np. I also recorded a couple more videos so will upload soon.
wildownes
@wildownes
Mar 29 2016 20:41
cool. thanks for making @makoto i can't listen to it now because the audio is very quiet and my air conditioner is running but looking forward to watching
Makoto Inoue
@makoto
Mar 29 2016 20:41
np. probably I should buy a microphone…
wildownes
@wildownes
Mar 29 2016 20:43
i cant remember if youtube allows you to adjust the volume on a clip you upload but you might look and see if they do... or adjust your video in a program.
Makoto Inoue
@makoto
Mar 29 2016 21:02
Doesn’t look like YouTube has a feature to optimise sound. I used ScreenFlow and ScreenFlow lets you double the volume so I will re-export and upload them.
Makoto Inoue
@makoto
Mar 29 2016 23:41
hello. I just finished posting my experience of going through token tutorials across 6 different blog posts/videos at https://medium.com/@makoto_inoue Any feedback welcome :-)