Fixing API typo -- contractName fixed

This commit is contained in:
tripathyr 2019-06-12 15:26:38 +05:30
parent a51d48a191
commit 4b63a65f96

View File

@ -292,6 +292,7 @@
function showMeParticipants(y){ function showMeParticipants(y){
var name=y.target.innerHTML; var name=y.target.innerHTML;
var address = y.target.dataset.contractaddress; var address = y.target.dataset.contractaddress;
console.log(name);console.log(address);
getAllParticipants(name,address); getAllParticipants(name,address);
} }
@ -300,7 +301,7 @@
getTokenList(); getTokenList();
function getAllParticipants(contractName,contractAddress){ function getAllParticipants(contractName,contractAddress){
fetch(`https://ranchimallflo.duckdns.org/api/v1.0/getSmartContractParticipants?name=${contractName}&contractAddress=${contractAddress}`) fetch(`https://ranchimallflo.duckdns.org/api/v1.0/getSmartContractParticipants?contractName=${contractName}&contractAddress=${contractAddress}`)
.then(response => response.json()) .then(response => response.json())
.then((data) => { .then((data) => {
console.log(data); console.log(data);