From 67315763116cf78b8c2047ce8bd2808576d8c066 Mon Sep 17 00:00:00 2001 From: Gav Wood Date: Wed, 2 Jul 2014 14:39:21 +0200 Subject: [PATCH] Fix some macros. --- CompilerState.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CompilerState.cpp b/CompilerState.cpp index 7a6681909..e1d710110 100644 --- a/CompilerState.cpp +++ b/CompilerState.cpp @@ -55,8 +55,8 @@ void CompilerState::populateStandard() "(def 'msg (gaslimit to value data datasize outsize) { (set x outsize) (set y (alloc @32)) (call gaslimit to value data datasize @0 @32) @0 })" "(def 'msg (gaslimit to value data datasize) { (call gaslimit to value data datasize 0 32) @0 })" "(def 'msg (gaslimit to value data) { [0]:data (msg gaslimit to value 0 32) })" - "(def 'msg (to value data) { [0]:data (msg 0 to value 0 32) })" - "(def 'msg (to data) { [0]:data (msg 0 to 0 0 32) })" + "(def 'msg (to value data) { [0]:data (msg (- gas 21) to value 0 32) })" + "(def 'msg (to data) { [0]:data (msg (- gas 21) to 0 0 32) })" "(def 'create (value code) { [0]:(msize) (create value @0 (lll code @0)) })" "(def 'create (code) { [0]:(msize) (create 0 @0 (lll code @0)) })" "(def 'sha3 (val) { [0]:val (sha3 0 32) })"