Bxpana
@bxpana
Ever wondered how to tinker with ZKsync mainnet locally? Turns out you can fork it using era_test_node and interact with contracts via Foundry! Today I learned, and soon you will too. Let’s dive into the journey! 🧵👇
0 reply
0 recast
0 reaction
Bxpana
@bxpana
1️⃣ Setting Up the Playground First things first, I’ll guide you through setting up era_test_node, forking the ZKsync mainnet, and configuring Foundry. It’s simpler than it sounds, and unlocks a world of local development possibilities! 🛠️
0 reply
0 recast
0 reaction
Bxpana
@bxpana
2️⃣ Streamlining with .env Shortcuts Let’s make life easier! I’ll show you how to use .env files to manage environment variables. No more copying and pasting addresses or private keys—just smooth sailing from here. ⛵
0 reply
0 recast
0 reaction
Bxpana
@bxpana
3️⃣ Checking Balances with Cast We’ll use cast call from Foundry to check balances and call contract functions. Say goodbye to GUIs and hello to efficient CLI commands. 💻
0 reply
0 recast
0 reaction