Ok so I am trying to initialize a new contract. From what I understand, creating this contract will only return a transaction hash. So I'm trying to access the new contract from data structures in the controlling contract. This is working in the solidity online compiler, but it wont seem to work within truffle.
fundingContract.createProject(amount , deadline, title, description, {from: account}).then(function(projectAddress) {
setStatus("Project created");
console.log(projectAddress.valueOf());
}).then(function() {
fundHub.getProjectAddress.call(0).then(function(_projectAddress) {
var newProject = Project.at(_projectAddress);
console.log(newProject);
newProject.getTitle.call().then(function(projectTitle) {
console.log(projectTitle.valueOf());
});
Could the function createProject be silently failing?