File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
target_chains/ethereum/contracts/contracts/entropy Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -257,7 +257,13 @@ abstract contract Entropy is IEntropy, EntropyState {
257257 req.callbackStatus = isRequestWithCallback
258258 ? EntropyStatusConstants.CALLBACK_NOT_STARTED
259259 : EntropyStatusConstants.CALLBACK_NOT_NECESSARY;
260- req.gasLimit10k = roundGas (callbackGasLimit);
260+ if (providerInfo.defaultGasLimit == 0 ) {
261+ // Provider doesn't support the new callback failure state flow (toggled by setting the gas limit field).
262+ // Set gasLimit10k to 0 to disable.
263+ req.gasLimit10k = 0 ;
264+ } else {
265+ req.gasLimit10k = roundGas (callbackGasLimit);
266+ }
261267 }
262268
263269 // As a user, request a random number from `provider`. Prior to calling this method, the user should
You can’t perform that action at this time.
0 commit comments