Hashgraph
Hashgraph copied to clipboard
QueryContractAsync is still wasteful
QueryContractAsync is still wasteful, the ASK functionality returns a value that is lower than what is actually required.
Considering calling the method twice, the first with no gas and getting the insufficient TX error, which returns the amount, and then compare that to the Max Fee on the context, if it fits within, then just execute the query with the reported value.