Hello,
The Moralis documents says that we can get access to the Ethers.js library that Moralis is using by doing:
const ethers = Moralis.web3Library
https://docs.moralis.io/moralis-server/web3/web3#get-the-ethersjs-library
But how can we do this in react-moralis? I have tried:
const {web3Library, web3} = useMoralis();
But web3Library is āundefinedā
Iām not finding the web3 object useful as well as itās just the Web3Provider for ethers.js
and I cant work with āutilitiesā (like BigNumber) or ācontract interactionā.
Prior to the upgrade to ethers I used to work with BN like so web3.utils.BN;
But I really would like to use ethers.
Can you please let me know how to access to the Ethers.js library from React Moralis?
Thanks!