From 952efb93ac10bf65eaab7adae97a645697364562 Mon Sep 17 00:00:00 2001 From: debris Date: Fri, 15 Jan 2016 11:39:10 +0100 Subject: [PATCH] fixed builtin outofgas --- src/executive.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/executive.rs b/src/executive.rs index 75195dc06..d229f9894 100644 --- a/src/executive.rs +++ b/src/executive.rs @@ -207,7 +207,10 @@ impl<'a> Executive<'a> { Ok(params.gas - cost) }, // just drain the whole gas - false => Ok(U256::zero()) + false => { + substate.excepted = true; + Ok(params.gas) + } } } else if params.code.len() > 0 { // if destination is a contract, do normal message call