dappuniversity / ico_irl Goto Github PK
View Code? Open in Web Editor NEWReal World ICO Ethereum Smart Contracts
Real World ICO Ethereum Smart Contracts
crowdsale stages
โ it starts in PreICO (109ms)
2) starts at the preICO rate
hello i have change the cap and run truffle test is comoing a error:
finalizing the crowdsale
when the goal is reached
"before each" hook for "handles goal reached":
Error: VM Exception while processing transaction: revert.
Problem is in the connection of metamask to the local blockchain by using its RPC address. I use the private key of the first account to get its information. But in my system the first account's actual address in ganache is: 0x4DF4F75E96D49A1b61a4Cd1800d55444bb39C761 but the address that is displayed in my chrome console is 0xED4Cd7eA80CfdDef5c78F6A02C9352124AA6D835. Also in app.js in the render function where I have to display my account I am getting account as NULL. Please do confirm why it is different. How do I wire up the actual account to app.js
finalizing the crowdsale
when the goal is reached
"before each" hook for "handles goal reached":
Error: VM Exception while processing transaction: revert
I have run:
npm install
truffle compile
ganache-cli
truffle deploy
Then when I run:
truffle console
DappToken.deployed().then((instance) => {token=instance})
token.address
This works fine. I get the address.
But when I run:
truffle console
DappTokenCrowdsale.deployed().then((instance) => {crowdsale=instance})
I get the following error:
Error: DappTokenCrowdsale has not been deployed to detected network (network/artifact mismatch)
at /usr/lib/node_modules/truffle/build/webpack:/packages/truffle-contract/contract.js:454:1
A lot has been changed to openzeppelin-solidity since 1.10.0. Any plan to upgrade this to 2.0.0?
because now the current version of solidity is 0.5.x
and also truffle is 5
and openzeppelin-solidity is 2.0
practically watching videos from youtube is useless unless at least you refactor this
repo
i really appreciate your effort
The goalReached
function is not defined causing the contract to not be deployable.
when the goal is reached
3) "before each" hook for "handles goal reached
refundable crowdsale
when the corwdsale stage is PreICO
forwards funds to the wallet:
AssertionError: the argument to above must be a number
26 passing (18s)
1 failing
1) Contract: DappTokenCrowdsale
refundable crowdsale
when the corwdsale stage is PreICO
forwards funds to the wallet:
AssertionError: the argument to above must be a number
not passing
crowdsale stages
starts at the preICO rate:
AssertionError: expected '2500' to equal '3000'
+ expected - actual
-2500
+3000
Once the people buy the tokens, how does the owner of the contract withdraw the eth back to their own account?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.