NOTE : This is for demo purposes only
npm install
Install all the required packages.npx hardhat node
Run the hardhat node on localhost.npx hardhat run scripts/deploy.js
Deploy all the required contracts on locally hosted ethereum node.- Copy
EntryPoint
,AccountFactory
,PayMaster
addresses, and paste them into.env.example
file. - Make
.env.example
➡️.env
- Copy
npx hardhat run scripts/execute.js
Execute the transaction to increment the count of smart account by callingexecute()
method on it.- Verify the transaction by running
npx hardhat run scripts/testCounter.js
, counter will increase starting from 0️⃣. In each simultaneous transactioncount++