Hashgraph icon indicating copy to clipboard operation
Hashgraph copied to clipboard

QueryContractAsync is still wasteful

Open bugbytesinc opened this issue 5 years ago • 0 comments

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.

bugbytesinc avatar Jan 27 '20 02:01 bugbytesinc