Writing Your First Smart Contract · #2 Code Your Own Cryptocurrency on Ethereum

preview_player
Показать описание
► SUBSCRIBE TO THIS CHANNEL ◄

DOWNLOAD THIS VIDEO FREE:

READ THE ARTICLE:

---

How to Build Ethereum Dapp (Decentralized Application Development Tutorial)

Donate Ether to the channel: 0x39C7BC5496f4eaaa1fF75d88E079C22f0519E7b9

Рекомендации по теме
Комментарии
Автор

The way you write the constructor is now deprecated, it should now be:
constructor() public {
// ...
}

jessoctavio
Автор

35 seconds into the video and I already feel shmarter.

jadntjodor
Автор

HI Gregor plz can you made a session on setup for windows

KSHETRAwarangal
Автор

can you brief the setup for winidows provide a step by step document if possible

KSHETRAwarangal
Автор

Great work! But I have some questions anyways.
Does it still work for now? (3 year later) Because I have some errors like "function name and contract name cant be same" But in this video these are same. It was just an example. I want to work updated versions but there are some difference which are prevent working my smart contract. Have you any advice for me?

ManWalkInNature
Автор

Hello, unfortuantley I keep getting an error when I try to run "truffle migrate" or "truffle migrate --reset". The error is as follows:
SyntaxError: Unexpected token '}'
at wrapSafe
at Module._compile
at Object.Module._extensions..js
at Module.load
at Function.Module._load
at Module.require
at Object.require
at Function.load
at Function.detect
at Object.run
at Command.run
at Object.<anonymous>
at __webpack_require__ 481bb5aaa12b754c9ee1:19:1)
at 481bb5aaa12b754c9ee1:62:1
at Object.<anonymous>
at Module._compile
at Object.Module._extensions..js
at Module.load
at Function.Module._load
at [as runMain]
at
Truffle v5.1.15 (core: 5.1.15)
Node v12.16.0


I would appreciate any help someone could offer, thank you.

weddingmoonvacations
Автор

I got ganache but where do you download the terminal? Thanks man!

davidsantos
Автор

my truffle test does not work (Error - 'module' is undefined). Any ideas? I'm doing this on a Windows 10 Pro laptop

nathanmcphee
Автор

Hi fellow learners, what is the difference between using truffle compile vs truffle migrate vs truffle migrate --reset? Thanks

myhendry
Автор

Gregory ... you are amazing. Thanks a lot. You lost me with the test DappToken.js Where can i read more about this? syntax, etc

realestatecentralintellige
Автор

hey! the info you are giving is great!! I would like to ask what´s the difference between setting up the work as you do and using remix???

gjalvarez
Автор

Thanks again for the content. I look forward to viewing and taking notes on the third lesson.

astrarai-thesobercoder
Автор

26:00
why when i check total supply like this:

truffle (development)> totalSupply
BN {negative: 0, words: [0, <1 empty item>], length: 1, red: null}

ASHQI
Автор

Hello, great tutorial by the way, May I asked if you have tutorial creating wallet?

pauljohn.ytchannel
Автор

[Need Help]


My device says 'docker' is not recognized as an internal or external command,
operable program or batch file.
Error: Error: You are trying to run dockerized solc, but docker is not
installed. And when i install docker, it says you need windows home pro or entrerise version.


Please Help!

RahulGupta-mekc
Автор

Stuck at running the tests. It cannot find the fs-extra module even after I installed it. Found no help for this issue online.

joeq
Автор

Hi, I'm new to this apsect so I want to ask something.
does this tutorial still work atm because when I download the truffle init, the file is different. thank you

thangnghiem
Автор

Hi Gregory, First of all I have to tell that you have made a great tutorial. I am not able to pass this test

1) Contract: D transfers token ownership:
AssertionError: error message must contain revert
at test/BabaCoin.js:44:8
at <anonymous>
at process._tickCallback

This is my code

it('transfers token ownership', function() {
return {
tokenInstance = instance;
// Test `require` statement first by transferring something larger than the sender's balance
return tokenInstance.transfer.call(accounts[1],
{
>= 0, 'error message must contain revert');
});
})



function transfer(address _to, uint256 _value) public returns (bool success) {
require(balanceOf[msg.sender] >= _value);
}
}

babasahebpinjar
Автор

04.05.2021

1. in the header of your contracnts:
// SPDX-License-Identifier: MIT
pragma solidity >=0.7.0;

2. in truffle-config.js:
compilers: {
solc: {
version: "0.8.4"

}
}

bxlythb
Автор

truffle migrate command not working when i run this command it is opening the truffle.js file

katoleshubham