Skip to content

Commit

Permalink
Merge pull request #165 from 0xPolygonHermez/feature/fixes-comparison
Browse files Browse the repository at this point in the history
add test comparison: byte & sar
  • Loading branch information
krlosMata authored Dec 18, 2022
2 parents 571eaa6 + 3521385 commit e114974
Show file tree
Hide file tree
Showing 26 changed files with 2,456 additions and 1,076 deletions.
10 changes: 5 additions & 5 deletions inputs-executor/calldata/op-bit_0.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{
"oldStateRoot": "0x4a9bfcb163ec91c5beb22e6aca41592433092c8c7821b01d37fd0de483f9265d",
"newStateRoot": "0x159f47c4e0247be2b4f490cf7cfc5bb482a9568f8fbffd2f7573b2a8b0235e75",
"newStateRoot": "0xcccdcbf9bf3f9642f240b14e1257a6287953787effada7f332f79e6d5b31fc95",
"oldAccInputHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"newAccInputHash": "0x5ea1bd8a4cd51769c1346c93922e307a4733910088c82ef2e90151923d55f10d",
"newAccInputHash": "0xdb2bfc5f6b080ce964d9e69468a6fe4f5c9b549caad2606153e211abd6febca7",
"newLocalExitRoot": "0x0000000000000000000000000000000000000000000000000000000000000000",
"oldNumBatch": 0,
"newNumBatch": 1,
"chainID": 1000,
"batchL2Data": "0xf9026d80843b9aca00832dc6c08080b90259608060405234801561001057600080fd5b50610239806100206000396000f3fe608060405234801561001057600080fd5b50600436106100a95760003560e01c80637db3fd8f116100715780637db3fd8f146100f4578063947df3fc146100fe57806395c5863c14610108578063d33e437114610112578063dc6e4ecc1461011c578063f5c7788014610126576100a9565b80631b08d96f146100ae57806343621fb2146100cc5780635b2529f3146100d65780635c3ef7f6146100e05780636a953dc3146100ea575b600080fd5b6100b6610130565b6040516100c391906101de565b60405180910390f35b6100d4610136565b005b6100de610142565b005b6100e861014c565b005b6100f2610158565b005b6100fc610165565b005b610106610172565b005b61011061017f565b005b61011a61018b565b005b6101246101b6565b005b61012e6101c3565b005b60005481565b600a6002188060005550565b6002198060005550565b600a6002178060005550565b60016101041b8060005550565b61010060081d8060005550565b610100600a1c8060005550565b600160081b8060005550565b7f012345678901234567890123456789012345678901234567890123456789012360011a8060005550565b61010060081c8060005550565b600a6002168060005550565b6101d8816101f9565b82525050565b60006020820190506101f360008301846101cf565b92915050565b600081905091905056fea264697066735822122087f300164307d65897bfaa5a4b192900047b8a14d4e1b2d0b8bfbcfc82f282e564736f6c634300080700338203e880802f2609e6c86a1b212f7549b0c30e3eb3cf752f4d60c642b4205f06af0dfc674b2bdb2bd0baf88f40f806176289b200d38cf0200eb01b715a088e6df3402a178c1b",
"batchL2Data": "0xf902b180843b9aca00832dc6c08080b9029d608060405234801561001057600080fd5b5061027d806100206000396000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c8063947df3fc11610071578063947df3fc1461010957806395c5863c14610113578063d33e43711461011d578063d35084e514610127578063dc6e4ecc14610131578063f5c778801461013b576100b4565b80631b08d96f146100b957806343621fb2146100d75780635b2529f3146100e15780635c3ef7f6146100eb5780636a953dc3146100f55780637db3fd8f146100ff575b600080fd5b6100c1610145565b6040516100ce9190610222565b60405180910390f35b6100df61014b565b005b6100e9610157565b005b6100f3610161565b005b6100fd61016d565b005b61010761017a565b005b610111610187565b005b61011b610194565b005b6101256101a0565b005b61012f6101cb565b005b6101396101fa565b005b610143610207565b005b60005481565b600a6002188060005550565b6002198060005550565b600a6002178060005550565b60016101041b8060005550565b61010060081d8060005550565b610100600a1c8060005550565b600160081b8060005550565b7f012345678901234567890123456789012345678901234567890123456789012360011a8060005550565b7fa0a1a2a3a4a5a6a7a8a9b0b1b2b3b4b5b6b7b8b9c0c1c2c3c4c5c6c7c8c9d0d16401000000011a8060005550565b61010060081c8060005550565b600a6002168060005550565b61021c8161023d565b82525050565b60006020820190506102376000830184610213565b92915050565b600081905091905056fea264697066735822122048b1ea97b1bb703bbb29aa56d20b94dbd39cdcf79371e3f851911ad4463c130164736f6c634300080700338203e88080ed040d40de689606880ed758b1b14177cb5335e5243f5026cfac848d919e08800b51e9142f8a8ceae6bf3a461d94711db0450bd9aed51e9bb93888f67a32106c1b",
"globalExitRoot": "0x090bcaf734c4f06c93954a827b45a6e8c67b8e0fd1e0a35a1c5982d6961828f9",
"timestamp": 1944498031,
"sequencerAddr": "0x617b3a3528F9cDd6630fd3301B9c8911F7Bf063D",
"batchHashData": "0x2dab47c604e8b6952a09c2ec4acf8b401dc79ce422ad9bd585a6110fea2db6ec",
"batchHashData": "0x46207565b1cb09fc17b54354ce85ab303c4a29da42687b298c72e27b691c22d0",
"contractsBytecode": {
"0xa72217948ea7d968a64c77f83908cea136bbf964": "0x4e210095549fa538aba18ffeed9294dd111dd34146c8992bdacf00939fcf5ae8",
"0xa72217948ea7d968a64c77f83908cea136bbf964": "0x1ed8e64f9dde7a2c8df1e64ea05865ef81d1340a0537b0d0318807db23809073",
"0x617b3a3528f9cdd6630fd3301b9c8911f7bf063d": "0x0000000000000000000000000000000000000000000000000000000000000000",
"0x4d5cf5032b2a844602278b01199ed191a86c93ff": "0x0000000000000000000000000000000000000000000000000000000000000000"
},
Expand Down
128 changes: 64 additions & 64 deletions inputs-executor/calldata/op-bit_1.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"oldStateRoot": "0x90628681225e8fb61629119104755e68ad9aa98f5a335e9d3b28fed4260d087d",
"newStateRoot": "0x6fd1508f05128d811567be5283263101cfd823a1cf20a2418ec4a0daca77efe3",
"oldStateRoot": "0x78a5371fbc33f970f774acee10ae02c9eb3e9a1589bd9255187e539acd33e364",
"newStateRoot": "0x7fc0abd39b7ac815d198a20c789fff41499eefbf31ef1a332902ff7285ca027b",
"oldAccInputHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"newAccInputHash": "0x8164bd9f9a4d89fedb181f90d32fbe6da67139789b53c50166d94e7b37da65c7",
"newLocalExitRoot": "0x0000000000000000000000000000000000000000000000000000000000000000",
Expand All @@ -13,49 +13,49 @@
"sequencerAddr": "0x617b3a3528F9cDd6630fd3301B9c8911F7Bf063D",
"batchHashData": "0x9f49be055eff64756f9400fed7c8bfb5983d5e5e9ec7a753b5682d508b8a4874",
"contractsBytecode": {
"0x4e210095549fa538aba18ffeed9294dd111dd34146c8992bdacf00939fcf5ae8": "0x608060405234801561001057600080fd5b50600436106100a95760003560e01c80637db3fd8f116100715780637db3fd8f146100f4578063947df3fc146100fe57806395c5863c14610108578063d33e437114610112578063dc6e4ecc1461011c578063f5c7788014610126576100a9565b80631b08d96f146100ae57806343621fb2146100cc5780635b2529f3146100d65780635c3ef7f6146100e05780636a953dc3146100ea575b600080fd5b6100b6610130565b6040516100c391906101de565b60405180910390f35b6100d4610136565b005b6100de610142565b005b6100e861014c565b005b6100f2610158565b005b6100fc610165565b005b610106610172565b005b61011061017f565b005b61011a61018b565b005b6101246101b6565b005b61012e6101c3565b005b60005481565b600a6002188060005550565b6002198060005550565b600a6002178060005550565b60016101041b8060005550565b61010060081d8060005550565b610100600a1c8060005550565b600160081b8060005550565b7f012345678901234567890123456789012345678901234567890123456789012360011a8060005550565b61010060081c8060005550565b600a6002168060005550565b6101d8816101f9565b82525050565b60006020820190506101f360008301846101cf565b92915050565b600081905091905056fea264697066735822122087f300164307d65897bfaa5a4b192900047b8a14d4e1b2d0b8bfbcfc82f282e564736f6c63430008070033",
"0x1ed8e64f9dde7a2c8df1e64ea05865ef81d1340a0537b0d0318807db23809073": "0x608060405234801561001057600080fd5b50600436106100b45760003560e01c8063947df3fc11610071578063947df3fc1461010957806395c5863c14610113578063d33e43711461011d578063d35084e514610127578063dc6e4ecc14610131578063f5c778801461013b576100b4565b80631b08d96f146100b957806343621fb2146100d75780635b2529f3146100e15780635c3ef7f6146100eb5780636a953dc3146100f55780637db3fd8f146100ff575b600080fd5b6100c1610145565b6040516100ce9190610222565b60405180910390f35b6100df61014b565b005b6100e9610157565b005b6100f3610161565b005b6100fd61016d565b005b61010761017a565b005b610111610187565b005b61011b610194565b005b6101256101a0565b005b61012f6101cb565b005b6101396101fa565b005b610143610207565b005b60005481565b600a6002188060005550565b6002198060005550565b600a6002178060005550565b60016101041b8060005550565b61010060081d8060005550565b610100600a1c8060005550565b600160081b8060005550565b7f012345678901234567890123456789012345678901234567890123456789012360011a8060005550565b7fa0a1a2a3a4a5a6a7a8a9b0b1b2b3b4b5b6b7b8b9c0c1c2c3c4c5c6c7c8c9d0d16401000000011a8060005550565b61010060081c8060005550565b600a6002168060005550565b61021c8161023d565b82525050565b60006020820190506102376000830184610213565b92915050565b600081905091905056fea264697066735822122048b1ea97b1bb703bbb29aa56d20b94dbd39cdcf79371e3f851911ad4463c130164736f6c63430008070033",
"0x617b3a3528f9cdd6630fd3301b9c8911f7bf063d": "0x0000000000000000000000000000000000000000000000000000000000000000",
"0x4d5cf5032b2a844602278b01199ed191a86c93ff": "0x0000000000000000000000000000000000000000000000000000000000000000",
"0x1275fbb540c8efc58b812ba83b0d0b8b9917ae98": "0x4e210095549fa538aba18ffeed9294dd111dd34146c8992bdacf00939fcf5ae8"
"0x1275fbb540c8efc58b812ba83b0d0b8b9917ae98": "0x1ed8e64f9dde7a2c8df1e64ea05865ef81d1340a0537b0d0318807db23809073"
},
"db": {
"0x90628681225e8fb61629119104755e68ad9aa98f5a335e9d3b28fed4260d087d": [
"27aff211bfa855cc",
"e9fe613e3f836783",
"a2355d33ad550b48",
"e6665cc8baac24c0",
"3030b23fada1052c",
"d0fcc8dc47081a9f",
"43a5c50de23db9d5",
"37a43c905a88d255",
"0x78a5371fbc33f970f774acee10ae02c9eb3e9a1589bd9255187e539acd33e364": [
"048b4133358ed49f",
"9d2b6fcb5f00e94c",
"7cd3d01475f76508",
"87dbae8107220449",
"be3e64bcdbb2131c",
"2b9010d3372c8d84",
"9a254e0f2afb9269",
"f749e8eff2ad7b88",
"0000000000000000",
"0000000000000000",
"0000000000000000",
"0000000000000000"
],
"0xe6665cc8baac24c0a2355d33ad550b48e9fe613e3f83678327aff211bfa855cc": [
"0x87dbae81072204497cd3d01475f765089d2b6fcb5f00e94c048b4133358ed49f": [
"0000000000000000",
"0000000000000000",
"0000000000000000",
"0000000000000000",
"132654ba1567f5cf",
"d1dd3a449e1768c2",
"157fbfd5ab60c637",
"7549dc73aa83ea35",
"6080a763e55c2a16",
"34cb387bc516404a",
"34f6067f1f5fe809",
"cd16fd152a3e5162",
"0000000000000000",
"0000000000000000",
"0000000000000000",
"0000000000000000"
],
"0x7549dc73aa83ea35157fbfd5ab60c637d1dd3a449e1768c2132654ba1567f5cf": [
"0xcd16fd152a3e516234f6067f1f5fe80934cb387bc516404a6080a763e55c2a16": [
"1baeee07cadec004",
"99f5931a96dacdaa",
"fc3570bcf0bf7c9e",
"ca0f755a7f970e76",
"a0cb3a6f297bc22e",
"df2e6d7c8642ec51",
"6e4c6ecddded9442",
"3f739dd6cbcbf7ea",
"66dba9e414fd1bb9",
"9d985ed9d740fb74",
"d2dabd11226541b8",
"fdccddd6a4498207",
"0000000000000000",
"0000000000000000",
"0000000000000000",
Expand Down Expand Up @@ -85,22 +85,22 @@
"0000000000000000",
"0000000000000000"
],
"0x3f739dd6cbcbf7ea6e4c6ecddded9442df2e6d7c8642ec51a0cb3a6f297bc22e": [
"0xfdccddd6a4498207d2dabd11226541b89d985ed9d740fb7466dba9e414fd1bb9": [
"14945417c9b957d1",
"1af1a1e389f5d2bf",
"33fbf3cd8d9bb1e0",
"13060509db26d4ff",
"26bc247a7372e88b",
"a717550329ec9eb7",
"5dbad96d72c293dc",
"d09125052e00400c",
"5b0b8860c8dea6cb",
"60f1e4a578bd31db",
"cfd8e9adf9cff513",
"cf246c1aa17e8487",
"0000000000000001",
"0000000000000000",
"0000000000000000",
"0000000000000000"
],
"0xd09125052e00400c5dbad96d72c293dca717550329ec9eb726bc247a7372e88b": [
"0000000000000239",
"0xcf246c1aa17e8487cfd8e9adf9cff51360f1e4a578bd31db5b0b8860c8dea6cb": [
"000000000000027d",
"0000000000000000",
"0000000000000000",
"0000000000000000",
Expand All @@ -109,11 +109,11 @@
"0000000000000000",
"0000000000000000"
],
"0x37a43c905a88d25543a5c50de23db9d5d0fcc8dc47081a9f3030b23fada1052c": [
"7d5a0592aa2ba6ed",
"34b03e673440fb85",
"420149741a1e98c0",
"a8bff22e07663314",
"0xf749e8eff2ad7b889a254e0f2afb92692b9010d3372c8d84be3e64bcdbb2131c": [
"95c043df0550a7f3",
"8b8ea48ce9b4bf98",
"440598bf2310b206",
"43ee414bb327e987",
"ebb05ed2082602b9",
"c538204eb07f3d6c",
"a5ed480ede7b8f0e",
Expand All @@ -123,25 +123,25 @@
"0000000000000000",
"0000000000000000"
],
"0xa8bff22e07663314420149741a1e98c034b03e673440fb857d5a0592aa2ba6ed": [
"0x43ee414bb327e987440598bf2310b2068b8ea48ce9b4bf9895c043df0550a7f3": [
"0000000000000000",
"0000000000000000",
"0000000000000000",
"0000000000000000",
"bfabf942b9a69db5",
"ef7052d641f75bce",
"d30a3bb3132dcc34",
"7fd4859550e4ee28",
"4b494208098df71e",
"e796ded4d316d2a0",
"cd14f0b685113bd3",
"a55b75e8ec07088e",
"0000000000000000",
"0000000000000000",
"0000000000000000",
"0000000000000000"
],
"0x7fd4859550e4ee28d30a3bb3132dcc34ef7052d641f75bcebfabf942b9a69db5": [
"c5e50062684f561c",
"51b8ab6656ae2279",
"ceb1766369faa325",
"4ad01771d531ef83",
"0xa55b75e8ec07088ecd14f0b685113bd3e796ded4d316d2a04b494208098df71e": [
"7814c4d0f47cb5c2",
"3b4d284b10d0fc61",
"9b510bce3ffdce4e",
"6867c9f5b73e1a3b",
"0000000000000000",
"0000000000000000",
"0000000000000000",
Expand All @@ -151,15 +151,15 @@
"0000000000000000",
"0000000000000000"
],
"0x4ad01771d531ef83ceb1766369faa32551b8ab6656ae2279c5e50062684f561c": [
"0x6867c9f5b73e1a3b9b510bce3ffdce4e3b4d284b10d0fc617814c4d0f47cb5c2": [
"356d68ec105e113b",
"b8c3ecf7ffd766d9",
"ecaae95d07bded7f",
"25ed1f939564a14f",
"60d554c56c7ca0d0",
"fc26cd55b9825cd5",
"0c07fff71e7b3a07",
"b9d2eeb953695936",
"e522d850c9263c90",
"2584dbb9072ff4ea",
"2bead23a2470529a",
"26d3bdd0b3282975",
"0000000000000000",
"0000000000000000",
"0000000000000000",
Expand Down Expand Up @@ -189,29 +189,29 @@
"0000000000000000",
"0000000000000000"
],
"0xb9d2eeb9536959360c07fff71e7b3a07fc26cd55b9825cd560d554c56c7ca0d0": [
"0x26d3bdd0b32829752bead23a2470529a2584dbb9072ff4eae522d850c9263c90": [
"3220d02477c5569c",
"0dfe002ac222af8c",
"6f01200bb557e8ae",
"2890f215f2c6b9f7",
"f642a73081180f8d",
"70452a5b7b5ccf13",
"d90bcd1cb0b827d3",
"5769df219bf72a30",
"3941e48dc2f37c5d",
"27428c6ed994d79a",
"ffe6bb1e16ec17bd",
"39e784ff87109866",
"0000000000000001",
"0000000000000000",
"0000000000000000",
"0000000000000000"
],
"0x5769df219bf72a30d90bcd1cb0b827d370452a5b7b5ccf13f642a73081180f8d": [
"000000009fcf5ae8",
"00000000dacf0093",
"0000000046c8992b",
"00000000111dd341",
"00000000ed9294dd",
"00000000aba18ffe",
"00000000549fa538",
"000000004e210095"
"0x39e784ff87109866ffe6bb1e16ec17bd27428c6ed994d79a3941e48dc2f37c5d": [
"0000000023809073",
"00000000318807db",
"000000000537b0d0",
"0000000081d1340a",
"00000000a05865ef",
"000000008df1e64e",
"000000009dde7a2c",
"000000001ed8e64f"
],
"0x52621f81fded9c35a5ed480ede7b8f0ec538204eb07f3d6cebb05ed2082602b9": [
"66ee2be0687eea76",
Expand Down
Loading

0 comments on commit e114974

Please sign in to comment.