Skip to content

CVM Test

Truman TIAN edited this page Jun 11, 2019 · 7 revisions

run following code to test opInfer

make cvm && ./build/bin/cvm --code $(echo "60 08 60 00 61 2002 61 1002 c0" | sed -e 's/ //g') --debug --prestate example/g.json --statdump --storagedir /data/model_test_storage/storage/.tmp run

the content of ../solc-test/g.json:

{
        "number": "0xff",
        "config": {
                "chainId": 42,
                "homesteadBlock": 0,
                "eip155Block": 0,
                "eip158Block": 0,
                "byzantiumBlock": 0
        },
        "alloc"      : {},
        "coinbase"   : "0x0000000000000000000000000000000000000000",
        "difficulty" : "0x1",
        "extraData"  : "",
        "gasLimit"   : "0x1122fefd8",
        "nonce"      : "0x0000000000000042",
        "mixhash"    : "0x0000000000000000000000000000000000000000000000000000000000000000",
        "parentHash" : "0x0000000000000000000000000000000000000000000000000000000000000000",
        "timestamp"  : "0x00"
}
Clone this wiki locally