More logic
This commit is contained in:
parent
813c1c2c53
commit
4008a740c5
@ -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 (
|
||||
|
Loading…
Reference in New Issue
Block a user