diff options
author | Gav Wood <i@gavwood.com> | 2014-07-02 20:39:21 +0800 |
---|---|---|
committer | Gav Wood <i@gavwood.com> | 2014-07-02 20:39:21 +0800 |
commit | 67315763116cf78b8c2047ce8bd2808576d8c066 (patch) | |
tree | bac3cb74533b74c78971ed3f18bdb9147ab137e7 | |
parent | ba064e4e0bbb56c9789bbd1cdb6b1e88736a6465 (diff) | |
download | dexon-solidity-67315763116cf78b8c2047ce8bd2808576d8c066.tar dexon-solidity-67315763116cf78b8c2047ce8bd2808576d8c066.tar.gz dexon-solidity-67315763116cf78b8c2047ce8bd2808576d8c066.tar.bz2 dexon-solidity-67315763116cf78b8c2047ce8bd2808576d8c066.tar.lz dexon-solidity-67315763116cf78b8c2047ce8bd2808576d8c066.tar.xz dexon-solidity-67315763116cf78b8c2047ce8bd2808576d8c066.tar.zst dexon-solidity-67315763116cf78b8c2047ce8bd2808576d8c066.zip |
Fix some macros.
-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) })" |