Hi,
I have 2 servers, 1 on mainnet and 1 on testnet and use the same cloud functions on both to test them
I am using web3 on cloud functions just for bignumber and nothing else
but if I use a mainnet chainId then I get {code: 141, error: āCould not find providerā} error on testnet version
const web3 = Moralis.web3ByChain(ā0x38ā);
const BN = web3.utils.BN;
yes itās possible to upload different versions for both of them but Iām using the same codebase from cli so itās easier to use exact same and not change it on every upload
is it possible to use bignumbers without choosing a target chain id? or is it possible to get the current server details on cloud functions so I can assign a testnet chainId or mainnet chainId depending on the current server dynamically?
Thanks