This project demonstrates how to deploy a FreePaymaster meaning that the paymaster don't check the data as long as the input format is correct.
- copy a file from
.env.example, rename it to.envand fill in each value. - Edit the targetNonce you wish to use in
scripts/deploy.ts. - Type following commends from this project's root directory.
npm install
npx hardhat clean
npx hardhat run --network goerli scripts/deployAndVerify.ts- change the default network from
hardhat.config.ts - Make sure you have enough ETH your private key wallet.
npx ts-node scripts/enablePaymaster.ts ${your_contract_address}✅ node version v18.16.0