Skip to content

Commit

Permalink
Added valid chainID/invalid V negative test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
marioevz authored and winsvega committed Oct 22, 2021
1 parent 16818a5 commit fbff6fe
Show file tree
Hide file tree
Showing 8 changed files with 274 additions and 0 deletions.
46 changes: 46 additions & 0 deletions TransactionTests/ttVValue/ValidChainID1InvalidV0.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"ValidChainID1InvalidV0" : {
"_info" : {
"comment" : "",
"filling-rpc-server" : "evm version 1.10.10-unstable-b66f8415",
"filling-tool-version" : "retesteth-0.2.0-memory+commit.f39f67b7.Linux.g++",
"generatedTestHash" : "777ffb59d147b261c9dcb3e6963db58d492948f1a79b5d9d7e1f533de0dac0e7",
"lllcversion" : "Version: 0.5.14-develop.2021.10.5+commit.401d5358.Linux.g++",
"source" : "src/TransactionTestsFiller/ttVValue/ValidChainID1InvalidV0Filler.json",
"sourceHash" : "b8cf0dd92420f27a9c1136ca78166f51f1ba109e2984014ba55dc58840c8bb22"
},
"result" : {
"Berlin" : {
"exception" : "InvalidChainID"
},
"Byzantium" : {
"exception" : "InvalidChainID"
},
"Constantinople" : {
"exception" : "InvalidChainID"
},
"ConstantinopleFix" : {
"exception" : "InvalidChainID"
},
"EIP150" : {
"exception" : "InvalidVRS"
},
"EIP158" : {
"exception" : "InvalidChainID"
},
"Frontier" : {
"exception" : "InvalidVRS"
},
"Homestead" : {
"exception" : "InvalidVRS"
},
"Istanbul" : {
"exception" : "InvalidChainID"
},
"London" : {
"exception" : "InvalidChainID"
}
},
"txbytes" : "0xf85f030182520894b94f5374fce5edbc8e2a8697c15331677e6ebf0b0a8024a098ff921201554726367d2be8c804a7ff89ccf285ebc57dff8ae4c44b9c19ac4aa01887321be575c8095f789dd4c743dfe42c1820f9231f98a962b210e3ac2452a3"
}
}
46 changes: 46 additions & 0 deletions TransactionTests/ttVValue/ValidChainID1InvalidV00.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"ValidChainID1InvalidV00" : {
"_info" : {
"comment" : "",
"filling-rpc-server" : "evm version 1.10.10-unstable-b66f8415",
"filling-tool-version" : "retesteth-0.2.0-memory+commit.f39f67b7.Linux.g++",
"generatedTestHash" : "e6a5fd2521fcc960d3c1d98b3a4a742bb189dbbfa05280255e9036f9b9891721",
"lllcversion" : "Version: 0.5.14-develop.2021.10.5+commit.401d5358.Linux.g++",
"source" : "src/TransactionTestsFiller/ttVValue/ValidChainID1InvalidV00Filler.json",
"sourceHash" : "7ac1f7a87d66e7c84710bedb66d37949df955d496f6abd9f63a8319bc963cf9a"
},
"result" : {
"Berlin" : {
"exception" : "LeadingZerosV"
},
"Byzantium" : {
"exception" : "LeadingZerosV"
},
"Constantinople" : {
"exception" : "LeadingZerosV"
},
"ConstantinopleFix" : {
"exception" : "LeadingZerosV"
},
"EIP150" : {
"exception" : "LeadingZerosV"
},
"EIP158" : {
"exception" : "LeadingZerosV"
},
"Frontier" : {
"exception" : "LeadingZerosV"
},
"Homestead" : {
"exception" : "LeadingZerosV"
},
"Istanbul" : {
"exception" : "LeadingZerosV"
},
"London" : {
"exception" : "LeadingZerosV"
}
},
"txbytes" : "0xf861030182520894b94f5374fce5edbc8e2a8697c15331677e6ebf0b0a80820025a098ff921201554726367d2be8c804a7ff89ccf285ebc57dff8ae4c44b9c19ac4aa01887321be575c8095f789dd4c743dfe42c1820f9231f98a962b210e3ac2452a3"
}
}
46 changes: 46 additions & 0 deletions TransactionTests/ttVValue/ValidChainID1InvalidV01.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"ValidChainID1InvalidV00" : {
"_info" : {
"comment" : "",
"filling-rpc-server" : "evm version 1.10.10-unstable-b66f8415",
"filling-tool-version" : "retesteth-0.2.0-memory+commit.f39f67b7.Linux.g++",
"generatedTestHash" : "79332439caec194e4853b6f622c759ba50d22792e35ff66ea50a2e61ac99d779",
"lllcversion" : "Version: 0.5.14-develop.2021.10.5+commit.401d5358.Linux.g++",
"source" : "src/TransactionTestsFiller/ttVValue/ValidChainID1InvalidV01Filler.json",
"sourceHash" : "dd8a43c4af404f66470eca8b747f6bed176f47dc6ec1a6d14d023f50c3263886"
},
"result" : {
"Berlin" : {
"exception" : "LeadingZerosV"
},
"Byzantium" : {
"exception" : "LeadingZerosV"
},
"Constantinople" : {
"exception" : "LeadingZerosV"
},
"ConstantinopleFix" : {
"exception" : "LeadingZerosV"
},
"EIP150" : {
"exception" : "LeadingZerosV"
},
"EIP158" : {
"exception" : "LeadingZerosV"
},
"Frontier" : {
"exception" : "LeadingZerosV"
},
"Homestead" : {
"exception" : "LeadingZerosV"
},
"Istanbul" : {
"exception" : "LeadingZerosV"
},
"London" : {
"exception" : "LeadingZerosV"
}
},
"txbytes" : "0xf861030182520894b94f5374fce5edbc8e2a8697c15331677e6ebf0b0a80820026a098ff921201554726367d2be8c804a7ff89ccf285ebc57dff8ae4c44b9c19ac4aa01887321be575c8095f789dd4c743dfe42c1820f9231f98a962b210e3ac2452a3"
}
}
46 changes: 46 additions & 0 deletions TransactionTests/ttVValue/ValidChainID1InvalidV1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"ValidChainID1InvalidV1" : {
"_info" : {
"comment" : "",
"filling-rpc-server" : "evm version 1.10.10-unstable-b66f8415",
"filling-tool-version" : "retesteth-0.2.0-memory+commit.f39f67b7.Linux.g++",
"generatedTestHash" : "964931bccaddbfc30745cde069c20266548cdb430af08b9400d0f63367176b84",
"lllcversion" : "Version: 0.5.14-develop.2021.10.5+commit.401d5358.Linux.g++",
"source" : "src/TransactionTestsFiller/ttVValue/ValidChainID1InvalidV1Filler.json",
"sourceHash" : "55615112877069efc224fee51b2a31c224978fce3a98783981d0836eb06962c6"
},
"result" : {
"Berlin" : {
"exception" : "InvalidChainID"
},
"Byzantium" : {
"exception" : "InvalidChainID"
},
"Constantinople" : {
"exception" : "InvalidChainID"
},
"ConstantinopleFix" : {
"exception" : "InvalidChainID"
},
"EIP150" : {
"exception" : "InvalidVRS"
},
"EIP158" : {
"exception" : "InvalidChainID"
},
"Frontier" : {
"exception" : "InvalidVRS"
},
"Homestead" : {
"exception" : "InvalidVRS"
},
"Istanbul" : {
"exception" : "InvalidChainID"
},
"London" : {
"exception" : "InvalidChainID"
}
},
"txbytes" : "0xf85f030182520894b94f5374fce5edbc8e2a8697c15331677e6ebf0b0a8027a098ff921201554726367d2be8c804a7ff89ccf285ebc57dff8ae4c44b9c19ac4aa01887321be575c8095f789dd4c743dfe42c1820f9231f98a962b210e3ac2452a3"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"ValidChainID1InvalidV00" :
{
"expectException" :
{
">=Frontier": "LeadingZerosV"
},
"transaction" :
{
"data" : "",
"gasLimit" : "21000",
"gasPrice" : "1",
"nonce" : "3",
"to" : "b94f5374fce5edbc8e2a8697c15331677e6ebf0b",
"value" : "10",
"chainId" : "1",
"v" : "0x:bigint 0x0025",
"r" : "0x98ff921201554726367d2be8c804a7ff89ccf285ebc57dff8ae4c44b9c19ac4a",
"s" : "0x1887321be575c8095f789dd4c743dfe42c1820f9231f98a962b210e3ac2452a3"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"ValidChainID1InvalidV00" :
{
"expectException" :
{
">=Frontier": "LeadingZerosV"
},
"transaction" :
{
"data" : "",
"gasLimit" : "21000",
"gasPrice" : "1",
"nonce" : "3",
"to" : "b94f5374fce5edbc8e2a8697c15331677e6ebf0b",
"value" : "10",
"chainId" : "1",
"v" : "0x:bigint 0x0026",
"r" : "0x98ff921201554726367d2be8c804a7ff89ccf285ebc57dff8ae4c44b9c19ac4a",
"s" : "0x1887321be575c8095f789dd4c743dfe42c1820f9231f98a962b210e3ac2452a3"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"ValidChainID1InvalidV0" :
{
"expectException" :
{
"<=EIP150" : "InvalidVRS",
">=EIP158" : "InvalidChainID"
},
"transaction" :
{
"data" : "",
"gasLimit" : "21000",
"gasPrice" : "1",
"nonce" : "3",
"to" : "b94f5374fce5edbc8e2a8697c15331677e6ebf0b",
"value" : "10",
"chainId" : "1",
"v" : "0x24",
"r" : "0x98ff921201554726367d2be8c804a7ff89ccf285ebc57dff8ae4c44b9c19ac4a",
"s" : "0x1887321be575c8095f789dd4c743dfe42c1820f9231f98a962b210e3ac2452a3"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"ValidChainID1InvalidV1" :
{
"expectException" :
{
"<=EIP150" : "InvalidVRS",
">=EIP158" : "InvalidChainID"
},
"transaction" :
{
"data" : "",
"gasLimit" : "21000",
"gasPrice" : "1",
"nonce" : "3",
"to" : "b94f5374fce5edbc8e2a8697c15331677e6ebf0b",
"value" : "10",
"chainId" : "1",
"v" : "0x27",
"r" : "0x98ff921201554726367d2be8c804a7ff89ccf285ebc57dff8ae4c44b9c19ac4a",
"s" : "0x1887321be575c8095f789dd4c743dfe42c1820f9231f98a962b210e3ac2452a3"
}
}
}

0 comments on commit fbff6fe

Please sign in to comment.