LLL: add Ethereum subunit macros

This commit is contained in:
Alex Beregszaszi 2016-10-15 14:48:10 +01:00
parent 3a91da27ed
commit 27fca416ba

View File

@ -69,6 +69,10 @@ void CompilerState::populateStandard()
"(def 'ripemd160 (data datasize) (msg allgas 3 0 data datasize))"
"(def 'sha256 (val) { [0]:val (sha256 0 32) })"
"(def 'ripemd160 (val) { [0]:val (ripemd160 0 32) })"
"(def 'wei 1)"
"(def 'szabo 1000000000000)"
"(def 'finney 1000000000000000)"
"(def 'ether 1000000000000000000)"
"}";
CodeFragment::compile(s, *this);
}