Truffle Introduction

@Boba-Kush
Thanks for reaching out!

I can suggest you some of the most easy to understand node.js tutorials for windows :slight_smile:
check out the link: https://www.youtube.com/watch?v=U8XF6AFGqlc

3 Likes

@gabba Thank you, that was the problem, I had typed in the accounts parameter in the wrong place!

Sweet, thanks Taha!! :call_me_hand:

@ filip, Filip do you have any tip when receiving this error C:\Users\Chann\Documents\ethereum-course-advanced\Helloworld> truffle init

āˆš Preparing to download

  • DownloadingError: write EPROTO 6036:error:1408F10B:SSL routines:ssl3_get_record:wrong version number:c:\ws\deps\openssl\openssl\ssl\record\ssl3_record.c:332:

    at WriteWrap.onWriteComplete [as oncomplete] (internal/stream_base_commons.js:92:16)

C:\Users\Chann\Documents\ethereum-course-advanced\Helloworld>

@Boba-Kush
A Github subdomainā€™s SSL for downloading the Truffle boxes from Github repos as ZIPs is broke.

Workaround: Simply run,

git clone https://github.com/trufflesuite/truffle-init-default

to get the default init box. You can then delete the .git folder if you so wish to start from scratch.

source: https://github.com/trufflesuite/truffle/issues/2966#issuecomment-643581713

1 Like

For me, when running ganache 2.1.2 for the first time (on pressing quickstart button), got error:

Hardfork muirGlacier not set as supported in supportedHardforks...

solved it by installing ganache version 2.4.0, as suggested here https://github.com/trufflesuite/ganache/issues/1780#issuecomment-630175407

1 Like

Thanks for the help. I just figured I would give it another shot and it worked! :star_struck: lol

2 Likes

Hi, Iā€™m having some errors when I try to install truffle and when try to deploy the Helloworld contract.
Check the images below. Can someone help to solve this issues?

Hi @lfsvamaral ,
Thanks for reaching out!

  1. First pic does not have any error, so its fine :slight_smile:
    Remember warnings are not errors.

  2. The error says that your Helloworld const is not defined that is either the name of the file is not matching as Helloworld or you have not defined it properly in your 2_Helloworld_deploy.js file

2 Likes

Thank you @Taha.

Iā€™ve already fixed the point 2., I didnā€™t change the const name to Helloworld on the migrations file.

Regarding the first point, what that warnings mean?

I have another problem now with Windows PowerShell ISE. See below.

When I try to run the script ā€œtruffle consoleā€ it gets stucked and doesnā€™t go forward. Iā€™ve also tried to run npm init and didnā€™t work also.

Hi @lfsvamaral
No worries, which version of node.js you are using?
for Node version:
node -v
It should be below 10 version for truffle to work properly.

Also check whether Ganache is running.

If the above two point doesnā€™t help:
Try to uninstall and re-install truffle.
and try truffle console in another folder.

P.S.: the point here is the shell is not displaying any error message hence I am not sure what could be going wrong.

2 Likes

@lfsvamaral
The warning says that truffle no longer support mkdirp commands.

Hope that answers the question.

2 Likes

I was running the latest version o node.js. Already installed the v9.9.0.
Ganache was also running. Shell is not displaying any error but it simply freezes and donā€™t show anything, i have to stop the script.

Now I canā€™t uninstall truffleā€¦

Iā€™ve tried now with the PowerShell console instead of the PowerShell ISE and i was able to run the truffle console.

same hereā€¦cant start the course

@filip Hello, Iā€™m a little confused about how Truffle works. Why do we have solidity files and javascript files in a project?
Thanks

@lfsvamaral
can you run this command:
node -v
and send screenshot.

I would like to know which version of node you are using.

The reason you are not able to uninstall truffle is because npm is not giving you permission

1 Like

@filip @Taha Hello Iā€™m confused with solidity version. Filip asked to use 0.5.12 so I put
pragma solidity 0.5.12;
then uncommented version: "0.5.12", in truffle-config.js
truffle version returns Solidity - 0.5.12 (solc-js) in the project directory but If I change dir truffle version returns Solidity v0.5.8 (solc-js)
The problem is I have error message
Source file requires different compiler version (current compiler is 0.7.0+commit.9e61f92b.Emscripten.clang) - note that nightly builds are considered to be strictly less than the released version
I understand that 0.7 is the latest version of Solidity
What should I do?
Thanks

Hi @Taha, iā€™ve downgrade to version v.9.9.0 as you said before.

@LAVATOR
Thanks for reaching out!

Regarding your query
Gabba answered it:

Did it work out for you?

1 Like