More logic

This commit is contained in:
Greg Shuflin 2022-12-07 23:48:41 -08:00
parent 813c1c2c53
commit 4008a740c5

View File

@ -137,9 +137,17 @@ function AddressList({addressList}: AddressListProps) {
function App() { function App() {
const [addressList, setAddressList] = useState([]); const [addressList, setAddressList] = useState([]);
const { address: ownerAddress } = useAccount()
async function performAirdrop() { async function performAirdrop() {
console.log("Performing airdrop"); console.log("Performing airdrop");
console.log(airdropContract.methods);
const allowance = await airdropContract.methods.allowance(ownerAddress, airdropAddress).call({ from: ownerAddress });
console.log(`Allowance: ${allowance}`);
} }
return ( return (