Closed cupOJoseph closed 5 years ago
This is an api issue. adds the only web3 call in the backend, should be fast enough since it is a free READ only call.
Error: connection not open
var fundraiser_id = 1;
//TODO: get "original fundraiser" for token ID
contract.methods.getDonation(tokenID).call().then(function(tokeninfo){
//do what you want when it's finish and everything ok .. with the result
console.log(tokeninfo);
}).catch(function(error){
// it's finshed but with error
console.log("web3 getting donation info error:");
console.log(error);
});
resolved in #62
web3 calls getDonation(donationID) //contract call type of token = response._originalDonationId //js to response