tutorialtoken-box
tutorialtoken-box copied to clipboard
A box containing all you need to get started with our OpenZeppelin (TutorialToken) tutorial.
Hello party people. I wanted to let you know that the link in this reps starting page is broken. Please update or remove.
…ed by the async method ethereum.enable()
Going through the tutorial yesterday as a learning resource, I ran into several issues. I will revisit this issue when I have a moment and describe all that failed.
updated pragma version.
balance = result.c[0]; result 返回的是一个bignumber balance = result.toFixed()/Math.pow(10,18) 这才是真正的代币数量
To make it work with new libraries the token code has to look more like this: ```pragma solidity ^0.5.0; import "../node_modules/openzeppelin-solidity/contracts/token/ERC20/ERC20.sol"; import "../node_modules/openzeppelin-solidity/contracts/token/ERC20/ERC20Detailed.sol"; contract TestToken is ERC20Detailed, ERC20 { constructor(...
When I use this tutorial, I meet some problems... It seem like I can't fix it... ``` $: truffle unbox tutorialtoken Downloading... Unpacking... Setting up... Error: Command failed: npm install...
The comment on this line makes reference to adopting pets, I'm guessing this was left over from a copy paste of the Ethereum Pet Shop. https://github.com/truffle-box/tutorialtoken-box/blob/62118ff1441dc6e3deb82ebc1ba9bd4287bf0196/src/js/app.js#L32 I'm guessing this can...
$ truffle version Truffle v4.0.4 (core: 4.0.4) Solidity v0.4.18 (solc-js) $ truffle unbox tutorialtoken Downloading... Error: Error making request. Please check the format of the requested resource: https://raw.githubusercontent.com/truffle-box/tutorialtoken-box/master/truffle.js at Request._callback...
Hello! I've downloaded this truffle-box & completed several times the tutorial, and doesn't display the balance (It shows 0), when I've written this ``` string public name = 'TutorialToken'; string...