matter-labs / era-tutorial-examples

[DEPRECATED ]Full examples for tutorials in the zkSync Era documentation. Visit: https://github.com/matter-labs/tutorials
https://github.com/matter-labs/tutorials
MIT License
129 stars 76 forks source link

Update zksync-web3 to 0.4.0 #2

Closed 32byte closed 2 years ago

32byte commented 2 years ago

As the local node docker image now supports the latest zksync-web3 version the project should use the latest version.

dohzya commented 2 years ago

I needed to add the following patch in order to run the tests:

diff --git a/local-setup-testing/hardhat.config.ts b/local-setup-testing/hardhat.config.ts
index bbffc8b..52c74e0 100644
--- a/local-setup-testing/hardhat.config.ts
+++ b/local-setup-testing/hardhat.config.ts
@@ -26,4 +26,10 @@ module.exports = {
   solidity: {
     version: "0.8.11",
   },
+  networks: {
+    // To compile with zksolc, this must be the default network.
+    hardhat: {
+      zksync: true,
+    }
+  },
 };
AnastasiiaVashchuk commented 2 years ago

I needed to add the following patch in order to run the tests:

diff --git a/local-setup-testing/hardhat.config.ts b/local-setup-testing/hardhat.config.ts
index bbffc8b..52c74e0 100644
--- a/local-setup-testing/hardhat.config.ts
+++ b/local-setup-testing/hardhat.config.ts
@@ -26,4 +26,10 @@ module.exports = {
   solidity: {
     version: "0.8.11",
   },
+  networks: {
+    // To compile with zksolc, this must be the default network.
+    hardhat: {
+      zksync: true,
+    }
+  },
 };

Thanks for noticing! We will fix it!