Postagens

Imagem
Imagem
Click me

lemons

import { task } from 'hardhat/config'; import { LensHub__factory } from '../typechain-types'; import { CreateProfileDataStruct } from '../typechain-types/LensHub'; import { waitForTx, initEnv, getAddrs, ZERO_ADDRESS } from './helpers/utils'; task('create-profile', 'creates a profile').setAction(async ({}, hre) => { const [governance, , user] = await initEnv(hre); const addrs = getAddrs(); const lensHub = LensHub__factory.connect(addrs['lensHub proxy'], governance); await waitForTx(lensHub.whitelistProfileCreator(user.address, true)); const inputStruct: CreateProfileDataStruct = { to: user.address, handle: 'zer0dot', imageURI: 'https://ipfs.io/ipfs/QmY9dUwYu67puaWBMxRKW98LPbXCznPwHUbhX5NeWnCJbX', followModule: ZERO_ADDRESS, followModuleInitData: [], followNFTURI: 'https://ipfs.io/ipfs/QmTFLSXdEQ6qsSzaXaCSNtiv6wA56qq87ytXJ182dXDQJS', }; await waitForTx(lensHub.conn...
Imagem