Examples of the different ways you can transfer tokens using Permit2.
Setup:
- Install the dependencies with
npm install
- Copy contents from
.env.example
to.env
- Set your MAINNET_RPC_URL in
.env
Test:
npx hardhat test
Inspired by useful-solidity-patterns.