When using ether.js directly I can set a gas limit, but with Moralis.executeFunction the only override that is being exposed is âmsgValueâ (value), why not expose the rest of the override options from ethers/web3? (using moralis 1.3.2)
I get errors where ethers fail to evaluate the gas price for the function, and now I have to use ethers directly instead of relying on Moralis to execute functions because of that, can you please expose the gasLimit/gas option or add the other overrides that come through ethers/web3?
ethers.js: https://docs.ethers.io/v5/api/contract/contract/#contract-functionsSend
web3.js - https://web3js.readthedocs.io/en/v1.2.2/web3-eth-contract.html#eth-contract
If itâs already available, itâs not in the typescript/documentation, this is the options type:
interface ExecuteFunctionOptions {
contractAddress: string;
abi: object;
functionName: string;
msgValue?: string;
params?: ExecuteFunctionParams;
/* missing this -> gasLimit?: number; */
}
, I would recommend alchemy or infura + ethers.
But I like their full-stack service with many simplifications, which is what keeps me from starting to investigate alternatives. Hope the Moralis team reads this and focuses more on building stable products instead of quick releases and new design.