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