Exemple #1
0
 def gas_used_by(self, computation: ComputationAPI) -> int:
     """
     Return the gas used by the given computation. In Frontier,
     for example, this is sum of the intrinsic cost and the gas used
     during computation.
     """
     return self.get_intrinsic_gas() + computation.get_gas_used()
 def gas_used_by(self, computation: ComputationAPI) -> int:
     return self.get_intrinsic_gas() + computation.get_gas_used()