From 4008a740c5fddd6e28014d891147eb4f4e02ffe9 Mon Sep 17 00:00:00 2001 From: Greg Shuflin Date: Wed, 7 Dec 2022 23:48:41 -0800 Subject: [PATCH] More logic --- src/App.tsx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/App.tsx b/src/App.tsx index eb0dda7..aa8444d 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -137,9 +137,17 @@ function AddressList({addressList}: AddressListProps) { function App() { const [addressList, setAddressList] = useState([]); + const { address: ownerAddress } = useAccount() async function performAirdrop() { console.log("Performing airdrop"); + + console.log(airdropContract.methods); + + const allowance = await airdropContract.methods.allowance(ownerAddress, airdropAddress).call({ from: ownerAddress }); + console.log(`Allowance: ${allowance}`); + + } return (