Deploying Game to the Testnet Discussion

#1

Welcome to the discussion about this section. Here you can ask questions or post feedback about this specific section.

0 Likes

#3

Hi I am not sure if it is good place to post, if not I am sorry. I have a problem with robsten testnet migration. After a migration my new created block is strange. It didn’t show any error during a migration. I mean there is no hash and contract address is to long. I can not check in robsten explorer if my migration was made in proper way because contract address doesn’t fit. Is it an error You mentioned on the course?

0 Likes

#4

Almost looks like it was aborted. Then it looked like you typed something out manually on the command line? Could you screenshot your file structure from your editor or terminal and the second migrations file?

0 Likes

#5

I have solved this problem. Actually it works:) when I cut in contract address , excess characters after 57, so my contract is 0x0a5849398b654714054187BEdfFF15E587d2ED57 and I can see in robsten explorer that everything is fine. My game is working on the testnet so It must be fine:) Great course by the way:) thanks

1 Like

#6

If one day I really have to put my project on github, how should I handle the mnemonic in the truffle-config.js ?

0 Likes

#7

Have it in a separate file that only contains your mnemonic phrase and import that into your file. Then you exclude that file from github.

Another alternative is to set a variable in your environment variables and use that in your config.js.

Here is an example. https://hackernoon.com/how-to-use-environment-variables-keep-your-secret-keys-safe-secure-8b1a7877d69c

0 Likes

#8

In case anyone else runs into this: When I went to MEW it was very different than the version Filip is using. There was no obvious way to display your secret key - like they have decided to protect us from ourselves.

If you go to the MEW home page there is a link at the top for classic mew - select that and then you can follow Filip’s steps.

Cheers,

David

2 Likes

#9

MyEtherWallet has a new look (Graphic User Interface). It is different from lesson " Configuring Metamask & Creating Account", it only provides public address but not private key (unencrypted). Any suggestion how to proceed from here ?

1 Like

#10

Found it myself !
Proceed to ADDRESS, then SWITCH, then click the PRINTER icon, the private key is there.

1 Like

#11

Thanks for that… I ran into the same problem…

1 Like

#12

How do I fix this?

00%20AM

Thank you

update

Found this article to be helpful, https://walkingtree.tech/deploying-a-smart-contract-in-rinkeby-using-infura/

I followed the steps in the article and switched to the Rinkeby Test Network, after that the contracts deployed.

***** well they seemed to have deployed except then I realized that it was only a Migrations dry-run (simulation), so still working on it ***

0 Likes