crowdfund's People
crowdfund's Issues
The contract code couldn't be stored, please check your gas amount.
$ truffle migrate --reset
Running migration: 1_initial_migration.js
Deploying Migrations...
Migrations: 0x402ed1e007e60a6007a7610d5e6e410cc727c888
Saving successful migration to network...
Saving artifacts...
Running migration: 2_deploy_contracts.js
Deploying FundingHub...
Error encountered, bailing. Network state unknown. Review successful transactions manually.
Error: The contract code couldn't be stored, please check your gas amount.
at Object.callback (/home/nickgeoca/.nvm/versions/node/v6.9.2/lib/node_modules/truffle/node_modules/ether-pudding/node_modules/web3/lib/web3/contract.js:147:46)
at /home/nickgeoca/.nvm/versions/node/v6.9.2/lib/node_modules/truffle/node_modules/ether-pudding/node_modules/web3/lib/web3/method.js:142:25
at /home/nickgeoca/.nvm/versions/node/v6.9.2/lib/node_modules/truffle/node_modules/ether-pudding/node_modules/web3/lib/web3/requestmanager.js:89:9
at request.onreadystatechange (/home/nickgeoca/.nvm/versions/node/v6.9.2/lib/node_modules/truffle/node_modules/web3/lib/web3/httpprovider.js:114:13)
at dispatchEvent (/home/nickgeoca/.nvm/versions/node/v6.9.2/lib/node_modules/truffle/node_modules/xmlhttprequest/lib/XMLHttpRequest.js:591:25)
at setState (/home/nickgeoca/.nvm/versions/node/v6.9.2/lib/node_modules/truffle/node_modules/xmlhttprequest/lib/XMLHttpRequest.js:610:14)
at IncomingMessage.<anonymous> (/home/nickgeoca/.nvm/versions/node/v6.9.2/lib/node_modules/truffle/node_modules/xmlhttprequest/lib/XMLHttpRequest.js:447:13)
at emitNone (events.js:91:20)
at IncomingMessage.emit (events.js:185:7)
at endReadableNT (_stream_readable.js:974:12)
at _combinedTickCallback (internal/process/next_tick.js:74:11)
at process._tickDomainCallback (internal/process/next_tick.js:122:9)
Contract method returning tx address instead of a 20 byte solidity address
Here is the solidity function deceleration.
https://github.com/nickgeoca/crowdfund/blob/master/contracts/FundingHub.sol#L71
function createProject ( address owner
, uint targetFundingWei
, uint deadlineUnixTimestamp)
returns (address)
Here is the js method call. For example pAddr returns (not a 20 byte address): 0x1ebaf8cb79ed9a19a8fac57fb9a51cb8f1259a62ef292960688afde9373da0f5
https://github.com/nickgeoca/crowdfund/blob/master/app/javascripts/fundingHubController.js#L44
c_fh.createProject(ownerAddress, web3.toWei(targetFundingEther), deadlineUnixTimestamp, {from: $scope.account})
.then(function(addr) {
pAddr = addr.valueOf();
console.log('Project Address: ' + pAddr);
$timeout(function () {
$scope.userStatus = 'Transaction complete!';
$scope.projectAddress = pAddr;
});
}).catch(function(e) {
console.log(e);
$scope.userStatus = ("Error creating project; see log.");
})
}
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.