Skip to content
This repository was archived by the owner on Aug 2, 2021. It is now read-only.

Commit 4bc65d1

Browse files
committed
add calldataload, codecopy, extcodecopy tests
1 parent 12cfae1 commit 4bc65d1

1 file changed

Lines changed: 176 additions & 0 deletions

File tree

VMTests/vmEnvironmentalInfoTest.json

Lines changed: 176 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,94 @@
416416
}
417417
}
418418
},
419+
"calldatacopy_DataIndexTooHigh" : {
420+
"callcreates" : [
421+
],
422+
"env" : {
423+
"currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
424+
"currentDifficulty" : "256",
425+
"currentGasLimit" : "1000000",
426+
"currentNumber" : "0",
427+
"currentTimestamp" : "1",
428+
"previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
429+
},
430+
"exec" : {
431+
"address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
432+
"caller" : "cd1722f3947def4cf144679da39c4c32bdc35681",
433+
"code" : "0x60ff7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa600037600051600055",
434+
"data" : "0x01234567890abcdef01234567890abcdef",
435+
"gas" : "100000000000",
436+
"gasPrice" : "1000000000",
437+
"origin" : "cd1722f3947def4cf144679da39c4c32bdc35681",
438+
"value" : "1000000000000000000"
439+
},
440+
"gas" : "99999999877",
441+
"logs" : {
442+
},
443+
"out" : "0x",
444+
"post" : {
445+
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
446+
"balance" : "1000000000000000000",
447+
"code" : "0x60ff7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa600037600051600055",
448+
"nonce" : "0",
449+
"storage" : {
450+
}
451+
}
452+
},
453+
"pre" : {
454+
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
455+
"balance" : "1000000000000000000",
456+
"code" : "0x60ff7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa600037600051600055",
457+
"nonce" : "0",
458+
"storage" : {
459+
}
460+
}
461+
}
462+
},
463+
"calldatacopy_DataIndexTooHigh2" : {
464+
"callcreates" : [
465+
],
466+
"env" : {
467+
"currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
468+
"currentDifficulty" : "256",
469+
"currentGasLimit" : "1000000",
470+
"currentNumber" : "0",
471+
"currentTimestamp" : "1",
472+
"previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
473+
},
474+
"exec" : {
475+
"address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
476+
"caller" : "cd1722f3947def4cf144679da39c4c32bdc35681",
477+
"code" : "0x60097ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa600037600051600055",
478+
"data" : "0x01234567890abcdef01234567890abcdef",
479+
"gas" : "100000000000",
480+
"gasPrice" : "1000000000",
481+
"origin" : "cd1722f3947def4cf144679da39c4c32bdc35681",
482+
"value" : "1000000000000000000"
483+
},
484+
"gas" : "99999999891",
485+
"logs" : {
486+
},
487+
"out" : "0x",
488+
"post" : {
489+
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
490+
"balance" : "1000000000000000000",
491+
"code" : "0x60097ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa600037600051600055",
492+
"nonce" : "0",
493+
"storage" : {
494+
}
495+
}
496+
},
497+
"pre" : {
498+
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
499+
"balance" : "1000000000000000000",
500+
"code" : "0x60097ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa600037600051600055",
501+
"nonce" : "0",
502+
"storage" : {
503+
}
504+
}
505+
}
506+
},
419507
"calldataload0" : {
420508
"callcreates" : [
421509
],
@@ -910,6 +998,50 @@
910998
}
911999
}
9121000
},
1001+
"codecopy_DataIndexTooHigh" : {
1002+
"callcreates" : [
1003+
],
1004+
"env" : {
1005+
"currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
1006+
"currentDifficulty" : "256",
1007+
"currentGasLimit" : "1000000",
1008+
"currentNumber" : "0",
1009+
"currentTimestamp" : "1",
1010+
"previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
1011+
},
1012+
"exec" : {
1013+
"address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
1014+
"caller" : "cd1722f3947def4cf144679da39c4c32bdc35681",
1015+
"code" : "0x60087ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa600039600051600055",
1016+
"data" : "0x01234567890abcdef01234567890abcdef",
1017+
"gas" : "100000000000",
1018+
"gasPrice" : "1000000000",
1019+
"origin" : "cd1722f3947def4cf144679da39c4c32bdc35681",
1020+
"value" : "1000000000000000000"
1021+
},
1022+
"gas" : "99999999891",
1023+
"logs" : {
1024+
},
1025+
"out" : "0x",
1026+
"post" : {
1027+
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
1028+
"balance" : "1000000000000000000",
1029+
"code" : "0x60087ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa600039600051600055",
1030+
"nonce" : "0",
1031+
"storage" : {
1032+
}
1033+
}
1034+
},
1035+
"pre" : {
1036+
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
1037+
"balance" : "1000000000000000000",
1038+
"code" : "0x60087ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa600039600051600055",
1039+
"nonce" : "0",
1040+
"storage" : {
1041+
}
1042+
}
1043+
}
1044+
},
9131045
"codesize" : {
9141046
"callcreates" : [
9151047
],
@@ -1014,6 +1146,50 @@
10141146
}
10151147
}
10161148
},
1149+
"extcodecopy_DataIndexTooHigh" : {
1150+
"callcreates" : [
1151+
],
1152+
"env" : {
1153+
"currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
1154+
"currentDifficulty" : "256",
1155+
"currentGasLimit" : "1000000",
1156+
"currentNumber" : "0",
1157+
"currentTimestamp" : "1",
1158+
"previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
1159+
},
1160+
"exec" : {
1161+
"address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
1162+
"caller" : "cd1722f3947def4cf144679da39c4c32bdc35681",
1163+
"code" : "0x60087ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa6000303c600051600055",
1164+
"data" : "0x01234567890abcdef01234567890abcdef",
1165+
"gas" : "100000000000",
1166+
"gasPrice" : "1000000000",
1167+
"origin" : "cd1722f3947def4cf144679da39c4c32bdc35681",
1168+
"value" : "1000000000000000000"
1169+
},
1170+
"gas" : "99999999890",
1171+
"logs" : {
1172+
},
1173+
"out" : "0x",
1174+
"post" : {
1175+
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
1176+
"balance" : "1000000000000000000",
1177+
"code" : "0x60087ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa6000303c600051600055",
1178+
"nonce" : "0",
1179+
"storage" : {
1180+
}
1181+
}
1182+
},
1183+
"pre" : {
1184+
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
1185+
"balance" : "1000000000000000000",
1186+
"code" : "0x60087ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa6000303c600051600055",
1187+
"nonce" : "0",
1188+
"storage" : {
1189+
}
1190+
}
1191+
}
1192+
},
10171193
"extcodesize0" : {
10181194
"callcreates" : [
10191195
],

0 commit comments

Comments
 (0)