From 87539234e31e6067be21561b1ce1452c7caeaaf6 Mon Sep 17 00:00:00 2001 From: debris Date: Fri, 15 Jan 2016 11:59:05 +0100 Subject: [PATCH] builin fail should return 0 gas left --- src/executive.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/executive.rs b/src/executive.rs index de4d3d10f..04f22bd74 100644 --- a/src/executive.rs +++ b/src/executive.rs @@ -209,7 +209,7 @@ impl<'a> Executive<'a> { // just drain the whole gas false => { substate.excepted = true; - Ok(params.gas) + Ok(U256::zero()) } } } else if params.code.len() > 0 {