Skip to content

Error when estimating gas #3

@jo-tud

Description

@jo-tud

I'm receive the following error, when trying the to estimate the gas for any safe tx:

>>> safe.estimate_gas(safe_tx)
  File "<console>", line 1, in <module>
  File "ape_safe.py", line 137, in estimate_gas
    return self.estimate_tx_gas(safe_tx.to, safe_tx.value, safe_tx.data, safe_tx.operation)
  File "gnosis/safe/safe.py", line 530, in estimate_tx_gas
    return self.estimate_tx_gas_with_web3(to, value, data) + ADDITIONAL_GAS + WEB3_ESTIMATION_OFFSET
  File "gnosis/safe/safe.py", line 469, in estimate_tx_gas_with_web3
    raise CannotEstimateGas('Cannot estimate gas with `eth_estimateGas`') from exc
CannotEstimateGas: Cannot estimate gas with `eth_estimateGas`

No idea why that would be happening. safe.preview(safe_tx, call_trace=True) works without flaw and shows the gas used...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions