Skip to content

CVM Test

Truman TIAN edited this page Jun 1, 2018 · 7 revisions

run following code to test opinfer

build/env.sh go run build/ci.go install ./cmd/evm && ./build/bin/evm --code $(echo "60 08 60 00 61 2001 61 1001 c0" | sed -e 's/ //g') --debug --prestate ../solc-test/g.json run

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

{
        "config": {
                "chainId": 1000,
                "homesteadBlock": 0,
                "eip155Block": 0,
                "eip158Block": 0,
                "__comment__": "byzantium fork start from 0",
                "byzantiumBlock": 0
        },
        "alloc"      : {},
        "coinbase"   : "0x0000000000000000000000000000000000000000",
        "difficulty" : "0x20",
        "extraData"  : "",
        "gasLimit"   : "0x2fefd8",
        "nonce"      : "0x0000000000000042",
        "mixhash"    : "0x0000000000000000000000000000000000000000000000000000000000000000",
        "parentHash" : "0x0000000000000000000000000000000000000000000000000000000000000000",
        "timestamp"  : "0x00"
}
Clone this wiki locally