sswensen / charity-blockchain Goto Github PK
View Code? Open in Web Editor NEWA transparent charity host deployed to the Etherium test net.
Home Page: https://golden-mirage.herokuapp.com
A transparent charity host deployed to the Etherium test net.
Home Page: https://golden-mirage.herokuapp.com
$ truffle test test/Charity.test.js
Using network 'development'.
Compiling your contracts...
===========================
> Compiling ./contracts/Charity.sol
> compilation warnings encountered:
/Users/SummitDrift/Dropbox/Web/Classes/cs481/Charity-Blockchain/contracts/Charity.sol:6:2: Warning: Variable is shadowed in inline assembly by an instruction of the same name
uint balance; //TODO make this able to store decimals
^----------^
/Users/SummitDrift/Dropbox/Web/Classes/cs481/Charity-Blockchain/contracts/Charity.sol:106:12: TypeError: Invalid type for argument in function call. Invalid implicit conversion from uint256 to string memory requested.
transact(amount, toAsciiString(donator));
^----^
Compilation failed. See above.
Truffle v5.0.13 (core: 5.0.13)
Node v11.14.0
This could help if we statically deploy a set number of contracts:
https://ethereum.stackexchange.com/questions/59969/truffle-migrations-same-contract-deployed-multiple-times
Move into Charity prop to suppress web3 loading on pages besides ./charities
Currently, msg.sender on the child level is the CharitableDonations contract, needs to be the person who called the function originally.
See commit 9e464c0
See slides for more information.
Ensure to run truffle-cli when migrating.
Will output seed phrase to use within react.
Note: Account[0] is owner.
Line 68 of Donate component
Convert to prop to remove duplicate code
Note: Need to pass children to visibility section as well as header/background strings
Was previously unable to set state for active tab here because it was a stateless function.
We can now use the new state hooks added to React in Feb to resolve this.
Update node modules,
Truffle compile,
Truffle migrate --reset
See here.
Could possibly integrate react pose?
Test the method
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.