Skip to content

Commit 41a349d

Browse files
authored
Merge pull request #454 from ethereum/bytes-arithmetic
add vm test for arithmetic (add) after byte
2 parents ff9c819 + f292314 commit 41a349d

File tree

2 files changed

+88
-0
lines changed

2 files changed

+88
-0
lines changed
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{
2+
"byteBN" : {
3+
"_info" : {
4+
"comment" : "",
5+
"filledwith" : "cpp-1.3.0+commit.6ae986d2.Linux.g++",
6+
"lllcversion" : "Version: 0.4.19+commit.c4cbbb05.Linux.clang",
7+
"source" : "src/VMTestsFiller/vmBitwiseLogicOperation/byteBNFiller.json",
8+
"sourceHash" : "5d2c4a67b3c2ccb6c5639356c952756ce48f5ced3bffc96b239ef9e103a0db07"
9+
},
10+
"callcreates" : [
11+
],
12+
"env" : {
13+
"currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
14+
"currentDifficulty" : "0x0100",
15+
"currentGasLimit" : "0x0f4240",
16+
"currentNumber" : "0x00",
17+
"currentTimestamp" : "0x01"
18+
},
19+
"exec" : {
20+
"address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
21+
"caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
22+
"code" : "0x641234523456601f1a8001600155",
23+
"data" : "0x",
24+
"gas" : "0x0186a0",
25+
"gasPrice" : "0x5af3107a4000",
26+
"origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
27+
"value" : "0x0de0b6b3a7640000"
28+
},
29+
"gas" : "0x01386e",
30+
"logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
31+
"out" : "0x",
32+
"post" : {
33+
"0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
34+
"balance" : "0xd3c21bcecceda1000000",
35+
"code" : "0x641234523456601f1a8001600155",
36+
"nonce" : "0x00",
37+
"storage" : {
38+
"0x01" : "0xac"
39+
}
40+
}
41+
},
42+
"pre" : {
43+
"0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
44+
"balance" : "0xd3c21bcecceda1000000",
45+
"code" : "0x641234523456601f1a8001600155",
46+
"nonce" : "0x00",
47+
"storage" : {
48+
}
49+
}
50+
}
51+
}
52+
}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"byteBN": {
3+
"env" : {
4+
"previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6",
5+
"currentNumber" : "0",
6+
"currentGasLimit" : "1000000",
7+
"currentDifficulty" : "256",
8+
"currentTimestamp" : "1",
9+
"currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba"
10+
},
11+
"expect" : {
12+
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
13+
"storage" : {
14+
"0x1" : "0xac"
15+
}
16+
}
17+
},
18+
"pre" : {
19+
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
20+
"balance" : "1000000000000000000000000",
21+
"nonce" : "0",
22+
"code": "{ (asm 0x1234523456 31 BYTE DUP1 ADD 0x01 SSTORE )}",
23+
"storage": {}
24+
}
25+
},
26+
"exec" : {
27+
"address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
28+
"origin" : "cd1722f3947def4cf144679da39c4c32bdc35681",
29+
"caller" : "cd1722f3947def4cf144679da39c4c32bdc35681",
30+
"value" : "1000000000000000000",
31+
"data" : "",
32+
"gasPrice" : "100000000000000",
33+
"gas" : "100000"
34+
}
35+
}
36+
}

0 commit comments

Comments
 (0)