From 4b63a65f96ab9b4e745192918171c7e9f11328a9 Mon Sep 17 00:00:00 2001 From: tripathyr Date: Wed, 12 Jun 2019 15:26:38 +0530 Subject: [PATCH] Fixing API typo -- contractName fixed --- index2.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index2.html b/index2.html index 64a320a..eb96d52 100644 --- a/index2.html +++ b/index2.html @@ -292,6 +292,7 @@ function showMeParticipants(y){ var name=y.target.innerHTML; var address = y.target.dataset.contractaddress; + console.log(name);console.log(address); getAllParticipants(name,address); } @@ -300,7 +301,7 @@ getTokenList(); 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((data) => { console.log(data);