コード例 #1
0
ファイル: transactions.py プロジェクト: yylluu/py-evm
 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()
コード例 #2
0
 def gas_used_by(self, computation: ComputationAPI) -> int:
     return self.get_intrinsic_gas() + computation.get_gas_used()