Hi
I have installed the Matic SDK with npm install --save @maticnetwork/maticjs. Then I try to initiating my Matic client with:
const Matic = require("@maticnetwork/maticjs").default;
const matic = new Matic({
network: “testnet”, //“mainnet”,
version: “mumbai”, //“v1”,
parentProvider: window.web3,
maticProvider: maticProvider,
});
await matic.initialize();
But than I get the following message:
„TypeError: Matic is not a constructor.“ Can somebody help me please?
Thank you
Henning