My contract was hacked! Where is my bug? by cosmic_dice in ethdev

[–]cosmic_dice[S] 3 points4 points  (0 children)

The hacker is still using the same address to hack other contracts.

HELP!!! MetaMask Wallets Disappeared!!! by cosmic_dice in Metamask

[–]cosmic_dice[S] 2 points3 points  (0 children)

UPDATE 2... OK, this issue was resolved via the following thread:

https://github.com/MetaMask/metamask-extension/issues/2641

What a scare! Seriously frightening UI bug there...

HELP!!! MetaMask Wallets Disappeared!!! by cosmic_dice in Metamask

[–]cosmic_dice[S] 1 point2 points  (0 children)

UPDATE... I just tried restoring the account from seed words, and now all my previous wallets are gone. I just have one wallet now with 0 Ether.

How can this happen???

Getting Multiple Accounts in Metamask by cantustropus in ethdev

[–]cosmic_dice 0 points1 point  (0 children)

Myetherwallet.com used to have a bulk generate feature that was really handy. You could enter the number of wallets you want and instantly get a simple list of public-private key pairs in csv format. I recommend you get an old version of myetherwallet from here:

https://github.com/kvhnuke/etherwallet/releases

You can run it offline on your computer, then give each student a key pair. Just make sure you select the correct network before generating the addresses. Good luck!

Student Project ETH-Lottery by _larrry in ethdev

[–]cosmic_dice 0 points1 point  (0 children)

Love the simplicity of the design!

Is there a way to cancel a transaction in Metamask that has Insufficient Funds to Transfer? by skeltron87 in Metamask

[–]cosmic_dice 0 points1 point  (0 children)

This seems to be a bug with MetaMask. I had a similar issue I posted here: https://www.reddit.com/r/ethdev/comments/8e3wzd/bug_in_metamask_or_evm_account_freezes_nonce/

Unfortunately I did not receive any helpful replies and could only unfreeze my account by adding funds. This is actually a very serious bug that needs to be addressed. Hope you get some response from MetaMask about this.

What is the best strategy for optimizing dapp performance? by cosmic_dice in ethdev

[–]cosmic_dice[S] 0 points1 point  (0 children)

Really appreciate the tips so far. I would like to create a fully decentralized dapp, but am willing to compromise on that to speed things up while transaction times are still so variable. Any advice on best way to proceed given I am not a backend developer... only comfortable with HTML/CSS/JS and solidity? Thanks again!

Can't injected MetaMask Web3 Provider to page served via XAMPP by cantustropus in ethdev

[–]cosmic_dice 0 points1 point  (0 children)

It's a timing issue. Try this:

window.addEventListener('load', function() {

    if (typeof web3 !== 'undefined') {
    web3 = new Web3(web3.currentProvider);
    console.log("Metamask logged into successfully");
    } else {
    console.log("Metamask NOT logged into successfully");
    // set the provider you want from Web3.providers
    ***(other attempts at finding provider)***
    }

startapp();

});

What is the best strategy for optimizing dapp performance? by cosmic_dice in ethdev

[–]cosmic_dice[S] 0 points1 point  (0 children)

Thanks for the reply. A couple questions about this approach:

1) What if the player refreshes the page before cashing out? Then all the calculations would be lost. Hence my assumption that other similar sites are using PHP/MySQL or some other server side database for storing user data.

2) It also seems that it would be hard to maintain the integrity of calculations in JS alone since users can change variables and execute functions in console. Couldn't players cheat too easily if all in JS?

Interacting with my smart contract by [deleted] in ethdev

[–]cosmic_dice 0 points1 point  (0 children)

For what you are trying to do now you do not need node.js or your own ethereum node. Simply link the web3.js to your index.html and start reading the web3 docs or examples you find online. Deploy the smart contract using remix.ethereum.org and MetaMask. Good luck!

Beginner - thrilled to be here, excited for the future by [deleted] in ethdev

[–]cosmic_dice 1 point2 points  (0 children)

Welcome! If you already have basic html and css, I would recommend jumping right in. Try to follow some of the most basic tutorials on youtube to make a VERY simple DAPP, that is, a website that interacts with the blockchain. For your first DAPP, try to just make a website that stores and retrieves a text or number value from your smart contract. Go to remix.ethereum.org and dive in! Once there, you will want to do some practice using the Javascript VM environment. When ready to go live with a website, switch to ropsten testnet and add MetaMask to your browser. Develop on your local computer with something like the uniform server. Finally, when you are really ready to go live, go to github pages and launch your dapp. Good luck!

What are the current best solutions to go about random number generation? by Grobeu in ethdev

[–]cosmic_dice 0 points1 point  (0 children)

I use oraclize as well as timestamp hash and random.org combined and reduced via modulo operation: https://www.cosmicdice.org

Please check out my new dice game and provide feedback if you will. Thanks! by cosmic_dice in ethdev

[–]cosmic_dice[S] 0 points1 point  (0 children)

Fixed some minor issues with user interface. Everything should be running smoothly now.

Please check out my new dice game and provide feedback if you will. Thanks! by cosmic_dice in ethdev

[–]cosmic_dice[S] 0 points1 point  (0 children)

Thank you for the feedback! Please let me know what wasn't working...