Open shekaryf opened 3 weeks ago
Hello,
Gas estimation will be added in the next release. In the meantime, as a temporary workaround, you should be able to use Nethereum directly:
var nethereumSerice = AppKit.Evm as NethereumEvmService;
var contract = nethereumSerice.Web3.Eth.GetContract(contractAbi, contractAddress);
var function = contract.GetFunction(methodName);
var transactionInput = new TransactionInput(function.GetData(arguments), contractAddress, new HexBigInteger(value));
var gasLimit = await nethereumSerice.Web3.Eth.Transactions.EstimateGas.SendRequestAsync(transactionInput);
var gasPrice = await nethereumSerice.Web3.Eth.GasPrice.SendRequestAsync();
This will work on all platforms except WebGL, sorry for the inconvenience 🙏
Thanks
I deployed a super simple .sol class that has set and get functions.
Now I want to write contract calling set; here is my code:
On deploying I tested with custom and estimated gas and problem not solved.
I used this code:
and error passed. Is there any way for default value or estimation ?
Thanks