diff options
-rw-r--r-- | CompilerState.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/CompilerState.cpp b/CompilerState.cpp index 7a668190..e1d71011 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) })" |