diff --git a/tests_python/tests_014/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_arithmetic_overflow[mul_overflow.tz-Unit-Left Unit].out b/tests_python/tests_014/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_arithmetic_overflow[mul_overflow.tz-Unit-Left Unit].out index b494dfb81babc5117bb0eee947a78066966cbd87..8e6d0ad0fe017706ca48a9637aea6cfd233e8dcf 100644 --- a/tests_python/tests_014/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_arithmetic_overflow[mul_overflow.tz-Unit-Left Unit].out +++ b/tests_python/tests_014/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_arithmetic_overflow[mul_overflow.tz-Unit-Left Unit].out @@ -22,5 +22,19 @@ Runtime error in contract [CONTRACT_HASH]: 19: At line 8 characters 11 to 14, unexpected arithmetic overflow +trace + - location: 9 (remaining gas: 1039988.754 units remaining) + [ (Pair (Left Unit) Unit) ] + - location: 9 (remaining gas: 1039988.744 units remaining) + [ (Left Unit) ] + - location: 10 (remaining gas: 1039988.744 units remaining) + [ Unit ] + - location: 12 (remaining gas: 1039988.734 units remaining) + [ 922337203685477580700 + Unit ] + - location: 15 (remaining gas: 1039988.724 units remaining) + [ 10 + 922337203685477580700 + Unit ] Fatal error: error running script diff --git a/tests_python/tests_014/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_arithmetic_overflow[mul_overflow.tz-Unit-Right Unit].out b/tests_python/tests_014/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_arithmetic_overflow[mul_overflow.tz-Unit-Right Unit].out index 49c78780d1cc559731012917acab7aaea2da8177..693e7282601b42f0b740398570da4394f324edb1 100644 --- a/tests_python/tests_014/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_arithmetic_overflow[mul_overflow.tz-Unit-Right Unit].out +++ b/tests_python/tests_014/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_arithmetic_overflow[mul_overflow.tz-Unit-Right Unit].out @@ -22,5 +22,19 @@ Runtime error in contract [CONTRACT_HASH]: 19: At line 14 characters 11 to 14, unexpected arithmetic overflow +trace + - location: 9 (remaining gas: 1039988.754 units remaining) + [ (Pair (Right Unit) Unit) ] + - location: 9 (remaining gas: 1039988.744 units remaining) + [ (Right Unit) ] + - location: 10 (remaining gas: 1039988.744 units remaining) + [ Unit ] + - location: 21 (remaining gas: 1039988.734 units remaining) + [ 10 + Unit ] + - location: 24 (remaining gas: 1039988.724 units remaining) + [ 922337203685477580700 + 10 + Unit ] Fatal error: error running script diff --git a/tests_python/tests_014/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_arithmetic_overflow[shifts.tz-None-(Left (Pair 1 257))].out b/tests_python/tests_014/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_arithmetic_overflow[shifts.tz-None-(Left (Pair 1 257))].out index 2e4b324e34a6f02efc8be807128d74074673fb47..9c93a35c65bd74b761f33762724f3d79d0343185 100644 --- a/tests_python/tests_014/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_arithmetic_overflow[shifts.tz-None-(Left (Pair 1 257))].out +++ b/tests_python/tests_014/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_arithmetic_overflow[shifts.tz-None-(Left (Pair 1 257))].out @@ -22,5 +22,15 @@ Runtime error in contract [CONTRACT_HASH]: 19: At line 10 characters 25 to 28, unexpected arithmetic overflow +trace + - location: 14 (remaining gas: 1039991.189 units remaining) + [ (Pair (Left (Pair 1 257)) None) ] + - location: 14 (remaining gas: 1039991.179 units remaining) + [ (Left (Pair 1 257)) ] + - location: 15 (remaining gas: 1039991.179 units remaining) + [ (Pair 1 257) ] + - location: 17 (remaining gas: 1039991.169 units remaining) + [ 1 + 257 ] Fatal error: error running script diff --git a/tests_python/tests_014/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_arithmetic_overflow[shifts.tz-None-(Left (Pair 123 257))].out b/tests_python/tests_014/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_arithmetic_overflow[shifts.tz-None-(Left (Pair 123 257))].out index b0606b50c7fe32318dc4cffe76006e2f3651c57b..fa5b37a53c90311e7974a03a043ad2c88017b7b0 100644 --- a/tests_python/tests_014/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_arithmetic_overflow[shifts.tz-None-(Left (Pair 123 257))].out +++ b/tests_python/tests_014/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_arithmetic_overflow[shifts.tz-None-(Left (Pair 123 257))].out @@ -22,5 +22,15 @@ Runtime error in contract [CONTRACT_HASH]: 19: At line 10 characters 25 to 28, unexpected arithmetic overflow +trace + - location: 14 (remaining gas: 1039991.189 units remaining) + [ (Pair (Left (Pair 123 257)) None) ] + - location: 14 (remaining gas: 1039991.179 units remaining) + [ (Left (Pair 123 257)) ] + - location: 15 (remaining gas: 1039991.179 units remaining) + [ (Pair 123 257) ] + - location: 17 (remaining gas: 1039991.169 units remaining) + [ 123 + 257 ] Fatal error: error running script diff --git a/tests_python/tests_014/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_arithmetic_overflow[shifts.tz-None-(Right (Pair 1 257))].out b/tests_python/tests_014/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_arithmetic_overflow[shifts.tz-None-(Right (Pair 1 257))].out index 9a9d61ab0cb04b1a7bcb1432e051a32335878e71..37f13e450a0698f83264dbd104f81951a4537224 100644 --- a/tests_python/tests_014/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_arithmetic_overflow[shifts.tz-None-(Right (Pair 1 257))].out +++ b/tests_python/tests_014/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_arithmetic_overflow[shifts.tz-None-(Right (Pair 1 257))].out @@ -22,5 +22,15 @@ Runtime error in contract [CONTRACT_HASH]: 19: At line 13 characters 25 to 28, unexpected arithmetic overflow +trace + - location: 14 (remaining gas: 1039991.189 units remaining) + [ (Pair (Right (Pair 1 257)) None) ] + - location: 14 (remaining gas: 1039991.179 units remaining) + [ (Right (Pair 1 257)) ] + - location: 15 (remaining gas: 1039991.179 units remaining) + [ (Pair 1 257) ] + - location: 20 (remaining gas: 1039991.169 units remaining) + [ 1 + 257 ] Fatal error: error running script diff --git a/tests_python/tests_014/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_arithmetic_overflow[shifts.tz-None-(Right (Pair 123 257))].out b/tests_python/tests_014/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_arithmetic_overflow[shifts.tz-None-(Right (Pair 123 257))].out index 11e8185fb9a0102e3ae2b6cbf524d5a66f317c9e..a5ce702dabeceb082fd4b5d9b0df93a1db968f1e 100644 --- a/tests_python/tests_014/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_arithmetic_overflow[shifts.tz-None-(Right (Pair 123 257))].out +++ b/tests_python/tests_014/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_arithmetic_overflow[shifts.tz-None-(Right (Pair 123 257))].out @@ -22,5 +22,15 @@ Runtime error in contract [CONTRACT_HASH]: 19: At line 13 characters 25 to 28, unexpected arithmetic overflow +trace + - location: 14 (remaining gas: 1039991.189 units remaining) + [ (Pair (Right (Pair 123 257)) None) ] + - location: 14 (remaining gas: 1039991.179 units remaining) + [ (Right (Pair 123 257)) ] + - location: 15 (remaining gas: 1039991.179 units remaining) + [ (Pair 123 257) ] + - location: 20 (remaining gas: 1039991.169 units remaining) + [ 123 + 257 ] Fatal error: error running script diff --git a/tests_python/tests_014/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_hash_consistency_michelson_cli.out b/tests_python/tests_014/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_hash_consistency_michelson_cli.out index a4436f112ed206cc379729a350cac3825678eb67..b863c99720b404a482661a3643f1e5963458035b 100644 --- a/tests_python/tests_014/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_hash_consistency_michelson_cli.out +++ b/tests_python/tests_014/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_hash_consistency_michelson_cli.out @@ -13,6 +13,20 @@ emitted operations big_map diff +trace + - location: 11 (remaining gas: 1039993.856 units remaining) + [ (Pair (Pair 22220000000 "2017-12-13T04:49:00Z" 34) 0x00) ] + - location: 11 (remaining gas: 1039993.846 units remaining) + [ (Pair 22220000000 "2017-12-13T04:49:00Z" 34) ] + - location: 12 (remaining gas: 1039992.673 units remaining) + [ 0x0507070080acd2c6a501070700bcc485a30b0022 ] + - location: 13 (remaining gas: 1039992.221 units remaining) + [ 0x95a69fcbbf773989333dc9b31e246575812dbea19d25089f83a2aeeea16ab4bc ] + - location: 14 (remaining gas: 1039992.211 units remaining) + [ {} + 0x95a69fcbbf773989333dc9b31e246575812dbea19d25089f83a2aeeea16ab4bc ] + - location: 16 (remaining gas: 1039992.201 units remaining) + [ (Pair {} 0x95a69fcbbf773989333dc9b31e246575812dbea19d25089f83a2aeeea16ab4bc) ] storage 0x95a69fcbbf773989333dc9b31e246575812dbea19d25089f83a2aeeea16ab4bc @@ -20,4 +34,18 @@ emitted operations big_map diff +trace + - location: 11 (remaining gas: 1039993.856 units remaining) + [ (Pair (Pair 22220000000 "2017-12-13T04:49:00Z" 34) 0x00) ] + - location: 11 (remaining gas: 1039993.846 units remaining) + [ (Pair 22220000000 "2017-12-13T04:49:00Z" 34) ] + - location: 12 (remaining gas: 1039992.673 units remaining) + [ 0x0507070080acd2c6a501070700bcc485a30b0022 ] + - location: 13 (remaining gas: 1039992.221 units remaining) + [ 0x95a69fcbbf773989333dc9b31e246575812dbea19d25089f83a2aeeea16ab4bc ] + - location: 14 (remaining gas: 1039992.211 units remaining) + [ {} + 0x95a69fcbbf773989333dc9b31e246575812dbea19d25089f83a2aeeea16ab4bc ] + - location: 16 (remaining gas: 1039992.201 units remaining) + [ (Pair {} 0x95a69fcbbf773989333dc9b31e246575812dbea19d25089f83a2aeeea16ab4bc) ] diff --git "a/tests_python/tests_014/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_map_map_sideeffect[map_map_sideeffect.tz-(Pair { Elt \"bar\" 5 ; Elt \"foo\" 1 } .480b9afc63.out" "b/tests_python/tests_014/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_map_map_sideeffect[map_map_sideeffect.tz-(Pair { Elt \"bar\" 5 ; Elt \"foo\" 1 } .480b9afc63.out" index b7a7b8c7e4e975e0c8ff26a9565fd09506e76e86..cac7f9a094b2f446c2100547fbe824fab8b54f92 100644 --- "a/tests_python/tests_014/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_map_map_sideeffect[map_map_sideeffect.tz-(Pair { Elt \"bar\" 5 ; Elt \"foo\" 1 } .480b9afc63.out" +++ "b/tests_python/tests_014/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_map_map_sideeffect[map_map_sideeffect.tz-(Pair { Elt \"bar\" 5 ; Elt \"foo\" 1 } .480b9afc63.out" @@ -6,4 +6,150 @@ emitted operations big_map diff +trace + - location: 11 (remaining gas: 1039982.413 units remaining) + [ (Pair 15 { Elt "bar" 5 ; Elt "foo" 1 } 6) ] + - location: 11 (remaining gas: 1039982.403 units remaining) + [ 15 + (Pair { Elt "bar" 5 ; Elt "foo" 1 } 6) ] + - location: 12 (remaining gas: 1039982.393 units remaining) + [ (Pair { Elt "bar" 5 ; Elt "foo" 1 } 6) + 15 ] + - location: 13 (remaining gas: 1039982.383 units remaining) + [ { Elt "bar" 5 ; Elt "foo" 1 } + 15 ] + - location: 14 (remaining gas: 1039982.383 units remaining) + [ ] + - location: 17 (remaining gas: 1039982.373 units remaining) + [ 0 ] + - location: 14 (remaining gas: 1039982.353 units remaining) + [ 15 + 0 ] + - location: 14 (remaining gas: 1039982.343 units remaining) + [ { Elt "bar" 5 ; Elt "foo" 1 } + 15 + 0 ] + - location: 14 (remaining gas: 1039982.343 units remaining) + [ { Elt "bar" 5 ; Elt "foo" 1 } + 15 + 0 ] + - location: 20 (remaining gas: 1039982.343 units remaining) + [ (Pair "bar" 5) + 15 + 0 ] + - location: 22 (remaining gas: 1039982.333 units remaining) + [ 5 + 15 + 0 ] + - location: 23 (remaining gas: 1039982.333 units remaining) + [ 15 + 0 ] + - location: 25 (remaining gas: 1039982.323 units remaining) + [ 15 + 15 + 0 ] + - location: 23 (remaining gas: 1039982.303 units remaining) + [ 5 + 15 + 15 + 0 ] + - location: 26 (remaining gas: 1039982.268 units remaining) + [ 20 + 15 + 0 ] + - location: 27 (remaining gas: 1039982.258 units remaining) + [ 20 + 20 + 15 + 0 ] + - location: 28 (remaining gas: 1039982.210 units remaining) + [ 20 + 15 + 20 + 0 ] + - location: 30 (remaining gas: 1039982.210 units remaining) + [ 20 + 0 ] + - location: 33 (remaining gas: 1039982.175 units remaining) + [ 20 ] + - location: 30 (remaining gas: 1039982.155 units remaining) + [ 15 + 20 ] + - location: 30 (remaining gas: 1039982.145 units remaining) + [ 20 + 15 + 20 ] + - location: 30 (remaining gas: 1039982.145 units remaining) + [ 20 + 15 + 20 ] + - location: 20 (remaining gas: 1039982.135 units remaining) + [ (Pair "foo" 1) + 15 + 20 ] + - location: 22 (remaining gas: 1039982.125 units remaining) + [ 1 + 15 + 20 ] + - location: 23 (remaining gas: 1039982.125 units remaining) + [ 15 + 20 ] + - location: 25 (remaining gas: 1039982.115 units remaining) + [ 15 + 15 + 20 ] + - location: 23 (remaining gas: 1039982.095 units remaining) + [ 1 + 15 + 15 + 20 ] + - location: 26 (remaining gas: 1039982.060 units remaining) + [ 16 + 15 + 20 ] + - location: 27 (remaining gas: 1039982.050 units remaining) + [ 16 + 16 + 15 + 20 ] + - location: 28 (remaining gas: 1039982.002 units remaining) + [ 16 + 15 + 16 + 20 ] + - location: 30 (remaining gas: 1039982.002 units remaining) + [ 16 + 20 ] + - location: 33 (remaining gas: 1039981.967 units remaining) + [ 36 ] + - location: 30 (remaining gas: 1039981.947 units remaining) + [ 15 + 36 ] + - location: 30 (remaining gas: 1039981.937 units remaining) + [ 16 + 15 + 36 ] + - location: 30 (remaining gas: 1039981.937 units remaining) + [ 16 + 15 + 36 ] + - location: 20 (remaining gas: 1039981.927 units remaining) + [ { Elt "bar" 20 ; Elt "foo" 16 } + 15 + 36 ] + - location: 34 (remaining gas: 1039981.927 units remaining) + [ 15 + 36 ] + - location: 36 (remaining gas: 1039981.917 units remaining) + [ 36 ] + - location: 34 (remaining gas: 1039981.897 units remaining) + [ { Elt "bar" 20 ; Elt "foo" 16 } + 36 ] + - location: 37 (remaining gas: 1039981.887 units remaining) + [ (Pair { Elt "bar" 20 ; Elt "foo" 16 } 36) ] + - location: 38 (remaining gas: 1039981.877 units remaining) + [ {} + (Pair { Elt "bar" 20 ; Elt "foo" 16 } 36) ] + - location: 40 (remaining gas: 1039981.867 units remaining) + [ (Pair {} { Elt "bar" 20 ; Elt "foo" 16 } 36) ] diff --git "a/tests_python/tests_014/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_map_map_sideeffect[map_map_sideeffect.tz-(Pair { Elt \"foo\" 1 } 1)-10-(Pair { .811573b5a7.out" "b/tests_python/tests_014/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_map_map_sideeffect[map_map_sideeffect.tz-(Pair { Elt \"foo\" 1 } 1)-10-(Pair { .811573b5a7.out" index bf3f5933330c0cc55bbae463f40b2066ce6eca33..4a4a1585bcdf54d0d4557f82d74f2a2ce16a24b8 100644 --- "a/tests_python/tests_014/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_map_map_sideeffect[map_map_sideeffect.tz-(Pair { Elt \"foo\" 1 } 1)-10-(Pair { .811573b5a7.out" +++ "b/tests_python/tests_014/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_map_map_sideeffect[map_map_sideeffect.tz-(Pair { Elt \"foo\" 1 } 1)-10-(Pair { .811573b5a7.out" @@ -6,4 +6,100 @@ emitted operations big_map diff +trace + - location: 11 (remaining gas: 1039982.784 units remaining) + [ (Pair 10 { Elt "foo" 1 } 1) ] + - location: 11 (remaining gas: 1039982.774 units remaining) + [ 10 + (Pair { Elt "foo" 1 } 1) ] + - location: 12 (remaining gas: 1039982.764 units remaining) + [ (Pair { Elt "foo" 1 } 1) + 10 ] + - location: 13 (remaining gas: 1039982.754 units remaining) + [ { Elt "foo" 1 } + 10 ] + - location: 14 (remaining gas: 1039982.754 units remaining) + [ ] + - location: 17 (remaining gas: 1039982.744 units remaining) + [ 0 ] + - location: 14 (remaining gas: 1039982.724 units remaining) + [ 10 + 0 ] + - location: 14 (remaining gas: 1039982.714 units remaining) + [ { Elt "foo" 1 } + 10 + 0 ] + - location: 14 (remaining gas: 1039982.714 units remaining) + [ { Elt "foo" 1 } + 10 + 0 ] + - location: 20 (remaining gas: 1039982.714 units remaining) + [ (Pair "foo" 1) + 10 + 0 ] + - location: 22 (remaining gas: 1039982.704 units remaining) + [ 1 + 10 + 0 ] + - location: 23 (remaining gas: 1039982.704 units remaining) + [ 10 + 0 ] + - location: 25 (remaining gas: 1039982.694 units remaining) + [ 10 + 10 + 0 ] + - location: 23 (remaining gas: 1039982.674 units remaining) + [ 1 + 10 + 10 + 0 ] + - location: 26 (remaining gas: 1039982.639 units remaining) + [ 11 + 10 + 0 ] + - location: 27 (remaining gas: 1039982.629 units remaining) + [ 11 + 11 + 10 + 0 ] + - location: 28 (remaining gas: 1039982.581 units remaining) + [ 11 + 10 + 11 + 0 ] + - location: 30 (remaining gas: 1039982.581 units remaining) + [ 11 + 0 ] + - location: 33 (remaining gas: 1039982.546 units remaining) + [ 11 ] + - location: 30 (remaining gas: 1039982.526 units remaining) + [ 10 + 11 ] + - location: 30 (remaining gas: 1039982.516 units remaining) + [ 11 + 10 + 11 ] + - location: 30 (remaining gas: 1039982.516 units remaining) + [ 11 + 10 + 11 ] + - location: 20 (remaining gas: 1039982.506 units remaining) + [ { Elt "foo" 11 } + 10 + 11 ] + - location: 34 (remaining gas: 1039982.506 units remaining) + [ 10 + 11 ] + - location: 36 (remaining gas: 1039982.496 units remaining) + [ 11 ] + - location: 34 (remaining gas: 1039982.476 units remaining) + [ { Elt "foo" 11 } + 11 ] + - location: 37 (remaining gas: 1039982.466 units remaining) + [ (Pair { Elt "foo" 11 } 11) ] + - location: 38 (remaining gas: 1039982.456 units remaining) + [ {} + (Pair { Elt "foo" 11 } 11) ] + - location: 40 (remaining gas: 1039982.446 units remaining) + [ (Pair {} { Elt "foo" 11 } 11) ] diff --git a/tests_python/tests_014/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_map_map_sideeffect[map_map_sideeffect.tz-(Pair {} 0)-10-(Pair {} 0)].out b/tests_python/tests_014/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_map_map_sideeffect[map_map_sideeffect.tz-(Pair {} 0)-10-(Pair {} 0)].out index 371708baa64ad0b6491d7c054f2f57c559572e28..0b751129cbe990b843e550b4a8a28a8c6cbb098b 100644 --- a/tests_python/tests_014/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_map_map_sideeffect[map_map_sideeffect.tz-(Pair {} 0)-10-(Pair {} 0)].out +++ b/tests_python/tests_014/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_map_map_sideeffect[map_map_sideeffect.tz-(Pair {} 0)-10-(Pair {} 0)].out @@ -6,4 +6,50 @@ emitted operations big_map diff +trace + - location: 11 (remaining gas: 1039983.114 units remaining) + [ (Pair 10 {} 0) ] + - location: 11 (remaining gas: 1039983.104 units remaining) + [ 10 + (Pair {} 0) ] + - location: 12 (remaining gas: 1039983.094 units remaining) + [ (Pair {} 0) + 10 ] + - location: 13 (remaining gas: 1039983.084 units remaining) + [ {} + 10 ] + - location: 14 (remaining gas: 1039983.084 units remaining) + [ ] + - location: 17 (remaining gas: 1039983.074 units remaining) + [ 0 ] + - location: 14 (remaining gas: 1039983.054 units remaining) + [ 10 + 0 ] + - location: 14 (remaining gas: 1039983.044 units remaining) + [ {} + 10 + 0 ] + - location: 14 (remaining gas: 1039983.044 units remaining) + [ {} + 10 + 0 ] + - location: 20 (remaining gas: 1039983.044 units remaining) + [ {} + 10 + 0 ] + - location: 34 (remaining gas: 1039983.044 units remaining) + [ 10 + 0 ] + - location: 36 (remaining gas: 1039983.034 units remaining) + [ 0 ] + - location: 34 (remaining gas: 1039983.014 units remaining) + [ {} + 0 ] + - location: 37 (remaining gas: 1039983.004 units remaining) + [ (Pair {} 0) ] + - location: 38 (remaining gas: 1039982.994 units remaining) + [ {} + (Pair {} 0) ] + - location: 40 (remaining gas: 1039982.984 units remaining) + [ (Pair {} {} 0) ] diff --git a/tests_python/tests_014/test_contract_opcodes.py b/tests_python/tests_014/test_contract_opcodes.py index 7b35f161b04250bb6325430e7735f0716a81bdeb..b4864f6e99a2c950853cc2f2525cb87ce7c384ab 100644 --- a/tests_python/tests_014/test_contract_opcodes.py +++ b/tests_python/tests_014/test_contract_opcodes.py @@ -1863,12 +1863,14 @@ class TestContractOpcodes: hash_contract, '0x00', '(Pair 22220000000 (Pair "2017-12-13T04:49:00Z" 034))', + trace_stack=True, ) assert run_script_res.storage == hash_result run_script_res = client.run_script( hash_contract, '0x00', '(Pair 22220000000 (Pair "2017-12-13T04:49:00Z" 034))', + trace_stack=True, ) assert run_script_res.storage == hash_result @@ -1895,7 +1897,7 @@ class TestContractOpcodes: contract = path.join(OPCODES_CONTRACT_PATH, contract) with assert_run_failure(r'unexpected arithmetic overflow'): - client.run_script(contract, param, storage) + client.run_script(contract, param, storage, trace_stack=True) @pytest.mark.skip(reason="Bug in annotation system") def test_fails_annotated_set_car_cdr( @@ -1909,6 +1911,7 @@ class TestContractOpcodes: path.join(OPCODES_CONTRACT_PATH, 'set_car.tz'), '(Pair %wrong %field "hello" 0)', '""', + trace_stack=True, ) @pytest.mark.parametrize( @@ -1940,5 +1943,7 @@ class TestContractOpcodes: ): client = client_regtest contract = path.join(OPCODES_CONTRACT_PATH, contract) - run_script_res = client.run_script(contract, storage, param) + run_script_res = client.run_script( + contract, storage, param, trace_stack=True + ) assert run_script_res.storage == expected diff --git a/tests_python/tests_015/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_arithmetic_overflow[mul_overflow.tz-Unit-Left Unit].out b/tests_python/tests_015/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_arithmetic_overflow[mul_overflow.tz-Unit-Left Unit].out index b6055d91984ea90006786d874046cc46bc53598f..94695c4d8e26ce15cc5a6c33745e662ac032df46 100644 --- a/tests_python/tests_015/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_arithmetic_overflow[mul_overflow.tz-Unit-Left Unit].out +++ b/tests_python/tests_015/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_arithmetic_overflow[mul_overflow.tz-Unit-Left Unit].out @@ -22,5 +22,19 @@ Runtime error in contract [CONTRACT_HASH]: 19: At line 8 characters 11 to 14, unexpected arithmetic overflow +trace + - location: 9 (remaining gas: 1039988.754 units remaining) + [ (Pair (Left Unit) Unit) ] + - location: 9 (remaining gas: 1039988.744 units remaining) + [ (Left Unit) ] + - location: 10 (remaining gas: 1039988.744 units remaining) + [ Unit ] + - location: 12 (remaining gas: 1039988.734 units remaining) + [ 922337203685477580700 + Unit ] + - location: 15 (remaining gas: 1039988.724 units remaining) + [ 10 + 922337203685477580700 + Unit ] Fatal error: error running script diff --git a/tests_python/tests_015/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_arithmetic_overflow[mul_overflow.tz-Unit-Right Unit].out b/tests_python/tests_015/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_arithmetic_overflow[mul_overflow.tz-Unit-Right Unit].out index 125a884986126372b666de5402721b1314dc3e36..f7c118381e2d50cee25031bbd54867ab2b27458f 100644 --- a/tests_python/tests_015/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_arithmetic_overflow[mul_overflow.tz-Unit-Right Unit].out +++ b/tests_python/tests_015/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_arithmetic_overflow[mul_overflow.tz-Unit-Right Unit].out @@ -22,5 +22,19 @@ Runtime error in contract [CONTRACT_HASH]: 19: At line 14 characters 11 to 14, unexpected arithmetic overflow +trace + - location: 9 (remaining gas: 1039988.754 units remaining) + [ (Pair (Right Unit) Unit) ] + - location: 9 (remaining gas: 1039988.744 units remaining) + [ (Right Unit) ] + - location: 10 (remaining gas: 1039988.744 units remaining) + [ Unit ] + - location: 21 (remaining gas: 1039988.734 units remaining) + [ 10 + Unit ] + - location: 24 (remaining gas: 1039988.724 units remaining) + [ 922337203685477580700 + 10 + Unit ] Fatal error: error running script diff --git a/tests_python/tests_015/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_arithmetic_overflow[shifts.tz-None-(Left (Pair 1 257))].out b/tests_python/tests_015/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_arithmetic_overflow[shifts.tz-None-(Left (Pair 1 257))].out index b476bb56b5e0a0afa0aec3ddd45355482edb669a..439b9f1f2c189d7df7e64293e8665887c7957395 100644 --- a/tests_python/tests_015/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_arithmetic_overflow[shifts.tz-None-(Left (Pair 1 257))].out +++ b/tests_python/tests_015/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_arithmetic_overflow[shifts.tz-None-(Left (Pair 1 257))].out @@ -22,5 +22,15 @@ Runtime error in contract [CONTRACT_HASH]: 19: At line 10 characters 25 to 28, unexpected arithmetic overflow +trace + - location: 14 (remaining gas: 1039991.189 units remaining) + [ (Pair (Left (Pair 1 257)) None) ] + - location: 14 (remaining gas: 1039991.179 units remaining) + [ (Left (Pair 1 257)) ] + - location: 15 (remaining gas: 1039991.179 units remaining) + [ (Pair 1 257) ] + - location: 17 (remaining gas: 1039991.169 units remaining) + [ 1 + 257 ] Fatal error: error running script diff --git a/tests_python/tests_015/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_arithmetic_overflow[shifts.tz-None-(Left (Pair 123 257))].out b/tests_python/tests_015/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_arithmetic_overflow[shifts.tz-None-(Left (Pair 123 257))].out index 46807f6a1a28df9fa129db7ffbd51ca6eb756fbf..836751cef784102a33fe4158c32c68859abc8ac1 100644 --- a/tests_python/tests_015/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_arithmetic_overflow[shifts.tz-None-(Left (Pair 123 257))].out +++ b/tests_python/tests_015/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_arithmetic_overflow[shifts.tz-None-(Left (Pair 123 257))].out @@ -22,5 +22,15 @@ Runtime error in contract [CONTRACT_HASH]: 19: At line 10 characters 25 to 28, unexpected arithmetic overflow +trace + - location: 14 (remaining gas: 1039991.189 units remaining) + [ (Pair (Left (Pair 123 257)) None) ] + - location: 14 (remaining gas: 1039991.179 units remaining) + [ (Left (Pair 123 257)) ] + - location: 15 (remaining gas: 1039991.179 units remaining) + [ (Pair 123 257) ] + - location: 17 (remaining gas: 1039991.169 units remaining) + [ 123 + 257 ] Fatal error: error running script diff --git a/tests_python/tests_015/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_arithmetic_overflow[shifts.tz-None-(Right (Pair 1 257))].out b/tests_python/tests_015/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_arithmetic_overflow[shifts.tz-None-(Right (Pair 1 257))].out index 2b5c25dca59c0ea375f9ceadd27b786fc81e88bf..bcd141c3d4f4ee788a68989f38a2536ca46789be 100644 --- a/tests_python/tests_015/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_arithmetic_overflow[shifts.tz-None-(Right (Pair 1 257))].out +++ b/tests_python/tests_015/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_arithmetic_overflow[shifts.tz-None-(Right (Pair 1 257))].out @@ -22,5 +22,15 @@ Runtime error in contract [CONTRACT_HASH]: 19: At line 13 characters 25 to 28, unexpected arithmetic overflow +trace + - location: 14 (remaining gas: 1039991.189 units remaining) + [ (Pair (Right (Pair 1 257)) None) ] + - location: 14 (remaining gas: 1039991.179 units remaining) + [ (Right (Pair 1 257)) ] + - location: 15 (remaining gas: 1039991.179 units remaining) + [ (Pair 1 257) ] + - location: 20 (remaining gas: 1039991.169 units remaining) + [ 1 + 257 ] Fatal error: error running script diff --git a/tests_python/tests_015/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_arithmetic_overflow[shifts.tz-None-(Right (Pair 123 257))].out b/tests_python/tests_015/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_arithmetic_overflow[shifts.tz-None-(Right (Pair 123 257))].out index 86154619c89f6e0e9fe6e89b76b7975884be5d90..a1309cf0c7b3af0a6ef4e9e2e8f55247bf2914c6 100644 --- a/tests_python/tests_015/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_arithmetic_overflow[shifts.tz-None-(Right (Pair 123 257))].out +++ b/tests_python/tests_015/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_arithmetic_overflow[shifts.tz-None-(Right (Pair 123 257))].out @@ -22,5 +22,15 @@ Runtime error in contract [CONTRACT_HASH]: 19: At line 13 characters 25 to 28, unexpected arithmetic overflow +trace + - location: 14 (remaining gas: 1039991.189 units remaining) + [ (Pair (Right (Pair 123 257)) None) ] + - location: 14 (remaining gas: 1039991.179 units remaining) + [ (Right (Pair 123 257)) ] + - location: 15 (remaining gas: 1039991.179 units remaining) + [ (Pair 123 257) ] + - location: 20 (remaining gas: 1039991.169 units remaining) + [ 123 + 257 ] Fatal error: error running script diff --git a/tests_python/tests_015/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_hash_consistency_michelson_cli.out b/tests_python/tests_015/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_hash_consistency_michelson_cli.out index 058e6e9129f7fd59565b364c34f6507034ba33b7..30811d44c630eea27ca2e32fb0ba95727cd4cc7e 100644 --- a/tests_python/tests_015/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_hash_consistency_michelson_cli.out +++ b/tests_python/tests_015/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_hash_consistency_michelson_cli.out @@ -13,6 +13,20 @@ emitted operations big_map diff +trace + - location: 11 (remaining gas: 1039993.856 units remaining) + [ (Pair (Pair 22220000000 "2017-12-13T04:49:00Z" 34) 0x00) ] + - location: 11 (remaining gas: 1039993.846 units remaining) + [ (Pair 22220000000 "2017-12-13T04:49:00Z" 34) ] + - location: 12 (remaining gas: 1039992.516 units remaining) + [ 0x0507070080acd2c6a501070700bcc485a30b0022 ] + - location: 13 (remaining gas: 1039992.064 units remaining) + [ 0x95a69fcbbf773989333dc9b31e246575812dbea19d25089f83a2aeeea16ab4bc ] + - location: 14 (remaining gas: 1039992.054 units remaining) + [ {} + 0x95a69fcbbf773989333dc9b31e246575812dbea19d25089f83a2aeeea16ab4bc ] + - location: 16 (remaining gas: 1039992.044 units remaining) + [ (Pair {} 0x95a69fcbbf773989333dc9b31e246575812dbea19d25089f83a2aeeea16ab4bc) ] storage 0x95a69fcbbf773989333dc9b31e246575812dbea19d25089f83a2aeeea16ab4bc @@ -20,4 +34,18 @@ emitted operations big_map diff +trace + - location: 11 (remaining gas: 1039993.856 units remaining) + [ (Pair (Pair 22220000000 "2017-12-13T04:49:00Z" 34) 0x00) ] + - location: 11 (remaining gas: 1039993.846 units remaining) + [ (Pair 22220000000 "2017-12-13T04:49:00Z" 34) ] + - location: 12 (remaining gas: 1039992.516 units remaining) + [ 0x0507070080acd2c6a501070700bcc485a30b0022 ] + - location: 13 (remaining gas: 1039992.064 units remaining) + [ 0x95a69fcbbf773989333dc9b31e246575812dbea19d25089f83a2aeeea16ab4bc ] + - location: 14 (remaining gas: 1039992.054 units remaining) + [ {} + 0x95a69fcbbf773989333dc9b31e246575812dbea19d25089f83a2aeeea16ab4bc ] + - location: 16 (remaining gas: 1039992.044 units remaining) + [ (Pair {} 0x95a69fcbbf773989333dc9b31e246575812dbea19d25089f83a2aeeea16ab4bc) ] diff --git "a/tests_python/tests_015/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_map_map_sideeffect[map_map_sideeffect.tz-(Pair { Elt \"bar\" 5 ; Elt \"foo\" 1 } .480b9afc63.out" "b/tests_python/tests_015/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_map_map_sideeffect[map_map_sideeffect.tz-(Pair { Elt \"bar\" 5 ; Elt \"foo\" 1 } .480b9afc63.out" index f98883fd6981f911d57826005e9a562ca3b25bb4..29b23edf58634b16b44b4b2199524c186c8398ed 100644 --- "a/tests_python/tests_015/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_map_map_sideeffect[map_map_sideeffect.tz-(Pair { Elt \"bar\" 5 ; Elt \"foo\" 1 } .480b9afc63.out" +++ "b/tests_python/tests_015/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_map_map_sideeffect[map_map_sideeffect.tz-(Pair { Elt \"bar\" 5 ; Elt \"foo\" 1 } .480b9afc63.out" @@ -6,4 +6,150 @@ emitted operations big_map diff +trace + - location: 11 (remaining gas: 1039982.728 units remaining) + [ (Pair 15 { Elt "bar" 5 ; Elt "foo" 1 } 6) ] + - location: 11 (remaining gas: 1039982.718 units remaining) + [ 15 + (Pair { Elt "bar" 5 ; Elt "foo" 1 } 6) ] + - location: 12 (remaining gas: 1039982.708 units remaining) + [ (Pair { Elt "bar" 5 ; Elt "foo" 1 } 6) + 15 ] + - location: 13 (remaining gas: 1039982.698 units remaining) + [ { Elt "bar" 5 ; Elt "foo" 1 } + 15 ] + - location: 14 (remaining gas: 1039982.698 units remaining) + [ ] + - location: 17 (remaining gas: 1039982.688 units remaining) + [ 0 ] + - location: 14 (remaining gas: 1039982.663 units remaining) + [ 15 + 0 ] + - location: 14 (remaining gas: 1039982.653 units remaining) + [ { Elt "bar" 5 ; Elt "foo" 1 } + 15 + 0 ] + - location: 14 (remaining gas: 1039982.653 units remaining) + [ { Elt "bar" 5 ; Elt "foo" 1 } + 15 + 0 ] + - location: 20 (remaining gas: 1039982.653 units remaining) + [ (Pair "bar" 5) + 15 + 0 ] + - location: 22 (remaining gas: 1039982.643 units remaining) + [ 5 + 15 + 0 ] + - location: 23 (remaining gas: 1039982.643 units remaining) + [ 15 + 0 ] + - location: 25 (remaining gas: 1039982.633 units remaining) + [ 15 + 15 + 0 ] + - location: 23 (remaining gas: 1039982.608 units remaining) + [ 5 + 15 + 15 + 0 ] + - location: 26 (remaining gas: 1039982.573 units remaining) + [ 20 + 15 + 0 ] + - location: 27 (remaining gas: 1039982.563 units remaining) + [ 20 + 20 + 15 + 0 ] + - location: 28 (remaining gas: 1039982.515 units remaining) + [ 20 + 15 + 20 + 0 ] + - location: 30 (remaining gas: 1039982.515 units remaining) + [ 20 + 0 ] + - location: 33 (remaining gas: 1039982.480 units remaining) + [ 20 ] + - location: 30 (remaining gas: 1039982.455 units remaining) + [ 15 + 20 ] + - location: 30 (remaining gas: 1039982.445 units remaining) + [ 20 + 15 + 20 ] + - location: 30 (remaining gas: 1039982.445 units remaining) + [ 20 + 15 + 20 ] + - location: 20 (remaining gas: 1039982.430 units remaining) + [ (Pair "foo" 1) + 15 + 20 ] + - location: 22 (remaining gas: 1039982.420 units remaining) + [ 1 + 15 + 20 ] + - location: 23 (remaining gas: 1039982.420 units remaining) + [ 15 + 20 ] + - location: 25 (remaining gas: 1039982.410 units remaining) + [ 15 + 15 + 20 ] + - location: 23 (remaining gas: 1039982.385 units remaining) + [ 1 + 15 + 15 + 20 ] + - location: 26 (remaining gas: 1039982.350 units remaining) + [ 16 + 15 + 20 ] + - location: 27 (remaining gas: 1039982.340 units remaining) + [ 16 + 16 + 15 + 20 ] + - location: 28 (remaining gas: 1039982.292 units remaining) + [ 16 + 15 + 16 + 20 ] + - location: 30 (remaining gas: 1039982.292 units remaining) + [ 16 + 20 ] + - location: 33 (remaining gas: 1039982.257 units remaining) + [ 36 ] + - location: 30 (remaining gas: 1039982.232 units remaining) + [ 15 + 36 ] + - location: 30 (remaining gas: 1039982.222 units remaining) + [ 16 + 15 + 36 ] + - location: 30 (remaining gas: 1039982.222 units remaining) + [ 16 + 15 + 36 ] + - location: 20 (remaining gas: 1039982.207 units remaining) + [ { Elt "bar" 20 ; Elt "foo" 16 } + 15 + 36 ] + - location: 34 (remaining gas: 1039982.207 units remaining) + [ 15 + 36 ] + - location: 36 (remaining gas: 1039982.197 units remaining) + [ 36 ] + - location: 34 (remaining gas: 1039982.172 units remaining) + [ { Elt "bar" 20 ; Elt "foo" 16 } + 36 ] + - location: 37 (remaining gas: 1039982.162 units remaining) + [ (Pair { Elt "bar" 20 ; Elt "foo" 16 } 36) ] + - location: 38 (remaining gas: 1039982.152 units remaining) + [ {} + (Pair { Elt "bar" 20 ; Elt "foo" 16 } 36) ] + - location: 40 (remaining gas: 1039982.142 units remaining) + [ (Pair {} { Elt "bar" 20 ; Elt "foo" 16 } 36) ] diff --git "a/tests_python/tests_015/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_map_map_sideeffect[map_map_sideeffect.tz-(Pair { Elt \"foo\" 1 } 1)-10-(Pair { .811573b5a7.out" "b/tests_python/tests_015/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_map_map_sideeffect[map_map_sideeffect.tz-(Pair { Elt \"foo\" 1 } 1)-10-(Pair { .811573b5a7.out" index 418959e3c01d5a7eedcf7651fcd48039bfe17f7b..76118bd9d9e0fa10bdf4f09f995d65395436f52c 100644 --- "a/tests_python/tests_015/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_map_map_sideeffect[map_map_sideeffect.tz-(Pair { Elt \"foo\" 1 } 1)-10-(Pair { .811573b5a7.out" +++ "b/tests_python/tests_015/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_map_map_sideeffect[map_map_sideeffect.tz-(Pair { Elt \"foo\" 1 } 1)-10-(Pair { .811573b5a7.out" @@ -6,4 +6,100 @@ emitted operations big_map diff +trace + - location: 11 (remaining gas: 1039983.099 units remaining) + [ (Pair 10 { Elt "foo" 1 } 1) ] + - location: 11 (remaining gas: 1039983.089 units remaining) + [ 10 + (Pair { Elt "foo" 1 } 1) ] + - location: 12 (remaining gas: 1039983.079 units remaining) + [ (Pair { Elt "foo" 1 } 1) + 10 ] + - location: 13 (remaining gas: 1039983.069 units remaining) + [ { Elt "foo" 1 } + 10 ] + - location: 14 (remaining gas: 1039983.069 units remaining) + [ ] + - location: 17 (remaining gas: 1039983.059 units remaining) + [ 0 ] + - location: 14 (remaining gas: 1039983.034 units remaining) + [ 10 + 0 ] + - location: 14 (remaining gas: 1039983.024 units remaining) + [ { Elt "foo" 1 } + 10 + 0 ] + - location: 14 (remaining gas: 1039983.024 units remaining) + [ { Elt "foo" 1 } + 10 + 0 ] + - location: 20 (remaining gas: 1039983.024 units remaining) + [ (Pair "foo" 1) + 10 + 0 ] + - location: 22 (remaining gas: 1039983.014 units remaining) + [ 1 + 10 + 0 ] + - location: 23 (remaining gas: 1039983.014 units remaining) + [ 10 + 0 ] + - location: 25 (remaining gas: 1039983.004 units remaining) + [ 10 + 10 + 0 ] + - location: 23 (remaining gas: 1039982.979 units remaining) + [ 1 + 10 + 10 + 0 ] + - location: 26 (remaining gas: 1039982.944 units remaining) + [ 11 + 10 + 0 ] + - location: 27 (remaining gas: 1039982.934 units remaining) + [ 11 + 11 + 10 + 0 ] + - location: 28 (remaining gas: 1039982.886 units remaining) + [ 11 + 10 + 11 + 0 ] + - location: 30 (remaining gas: 1039982.886 units remaining) + [ 11 + 0 ] + - location: 33 (remaining gas: 1039982.851 units remaining) + [ 11 ] + - location: 30 (remaining gas: 1039982.826 units remaining) + [ 10 + 11 ] + - location: 30 (remaining gas: 1039982.816 units remaining) + [ 11 + 10 + 11 ] + - location: 30 (remaining gas: 1039982.816 units remaining) + [ 11 + 10 + 11 ] + - location: 20 (remaining gas: 1039982.801 units remaining) + [ { Elt "foo" 11 } + 10 + 11 ] + - location: 34 (remaining gas: 1039982.801 units remaining) + [ 10 + 11 ] + - location: 36 (remaining gas: 1039982.791 units remaining) + [ 11 ] + - location: 34 (remaining gas: 1039982.766 units remaining) + [ { Elt "foo" 11 } + 11 ] + - location: 37 (remaining gas: 1039982.756 units remaining) + [ (Pair { Elt "foo" 11 } 11) ] + - location: 38 (remaining gas: 1039982.746 units remaining) + [ {} + (Pair { Elt "foo" 11 } 11) ] + - location: 40 (remaining gas: 1039982.736 units remaining) + [ (Pair {} { Elt "foo" 11 } 11) ] diff --git a/tests_python/tests_015/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_map_map_sideeffect[map_map_sideeffect.tz-(Pair {} 0)-10-(Pair {} 0)].out b/tests_python/tests_015/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_map_map_sideeffect[map_map_sideeffect.tz-(Pair {} 0)-10-(Pair {} 0)].out index 3e22eae20fd4ba7b3e0ecabedcd69a34e86bece3..1db2cc5711f991a42905b192a1ad15fc388bc785 100644 --- a/tests_python/tests_015/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_map_map_sideeffect[map_map_sideeffect.tz-(Pair {} 0)-10-(Pair {} 0)].out +++ b/tests_python/tests_015/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_map_map_sideeffect[map_map_sideeffect.tz-(Pair {} 0)-10-(Pair {} 0)].out @@ -6,4 +6,50 @@ emitted operations big_map diff +trace + - location: 11 (remaining gas: 1039983.429 units remaining) + [ (Pair 10 {} 0) ] + - location: 11 (remaining gas: 1039983.419 units remaining) + [ 10 + (Pair {} 0) ] + - location: 12 (remaining gas: 1039983.409 units remaining) + [ (Pair {} 0) + 10 ] + - location: 13 (remaining gas: 1039983.399 units remaining) + [ {} + 10 ] + - location: 14 (remaining gas: 1039983.399 units remaining) + [ ] + - location: 17 (remaining gas: 1039983.389 units remaining) + [ 0 ] + - location: 14 (remaining gas: 1039983.364 units remaining) + [ 10 + 0 ] + - location: 14 (remaining gas: 1039983.354 units remaining) + [ {} + 10 + 0 ] + - location: 14 (remaining gas: 1039983.354 units remaining) + [ {} + 10 + 0 ] + - location: 20 (remaining gas: 1039983.354 units remaining) + [ {} + 10 + 0 ] + - location: 34 (remaining gas: 1039983.354 units remaining) + [ 10 + 0 ] + - location: 36 (remaining gas: 1039983.344 units remaining) + [ 0 ] + - location: 34 (remaining gas: 1039983.319 units remaining) + [ {} + 0 ] + - location: 37 (remaining gas: 1039983.309 units remaining) + [ (Pair {} 0) ] + - location: 38 (remaining gas: 1039983.299 units remaining) + [ {} + (Pair {} 0) ] + - location: 40 (remaining gas: 1039983.289 units remaining) + [ (Pair {} {} 0) ] diff --git a/tests_python/tests_015/test_contract_opcodes.py b/tests_python/tests_015/test_contract_opcodes.py index 7b35f161b04250bb6325430e7735f0716a81bdeb..b4864f6e99a2c950853cc2f2525cb87ce7c384ab 100644 --- a/tests_python/tests_015/test_contract_opcodes.py +++ b/tests_python/tests_015/test_contract_opcodes.py @@ -1863,12 +1863,14 @@ class TestContractOpcodes: hash_contract, '0x00', '(Pair 22220000000 (Pair "2017-12-13T04:49:00Z" 034))', + trace_stack=True, ) assert run_script_res.storage == hash_result run_script_res = client.run_script( hash_contract, '0x00', '(Pair 22220000000 (Pair "2017-12-13T04:49:00Z" 034))', + trace_stack=True, ) assert run_script_res.storage == hash_result @@ -1895,7 +1897,7 @@ class TestContractOpcodes: contract = path.join(OPCODES_CONTRACT_PATH, contract) with assert_run_failure(r'unexpected arithmetic overflow'): - client.run_script(contract, param, storage) + client.run_script(contract, param, storage, trace_stack=True) @pytest.mark.skip(reason="Bug in annotation system") def test_fails_annotated_set_car_cdr( @@ -1909,6 +1911,7 @@ class TestContractOpcodes: path.join(OPCODES_CONTRACT_PATH, 'set_car.tz'), '(Pair %wrong %field "hello" 0)', '""', + trace_stack=True, ) @pytest.mark.parametrize( @@ -1940,5 +1943,7 @@ class TestContractOpcodes: ): client = client_regtest contract = path.join(OPCODES_CONTRACT_PATH, contract) - run_script_res = client.run_script(contract, storage, param) + run_script_res = client.run_script( + contract, storage, param, trace_stack=True + ) assert run_script_res.storage == expected diff --git a/tests_python/tests_alpha/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_arithmetic_overflow[mul_overflow.tz-Unit-Left Unit].out b/tests_python/tests_alpha/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_arithmetic_overflow[mul_overflow.tz-Unit-Left Unit].out index 21aa10045fe17dbbf804e69c2a8ef5991c029ed5..d8a81e29bbd0106bebe743953182c2463807afda 100644 --- a/tests_python/tests_alpha/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_arithmetic_overflow[mul_overflow.tz-Unit-Left Unit].out +++ b/tests_python/tests_alpha/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_arithmetic_overflow[mul_overflow.tz-Unit-Left Unit].out @@ -22,5 +22,19 @@ Runtime error in contract [CONTRACT_HASH]: 19: At line 8 characters 11 to 14, unexpected arithmetic overflow +trace + - location: 9 (remaining gas: 1039988.754 units remaining) + [ (Pair (Left Unit) Unit) ] + - location: 9 (remaining gas: 1039988.744 units remaining) + [ (Left Unit) ] + - location: 10 (remaining gas: 1039988.744 units remaining) + [ Unit ] + - location: 12 (remaining gas: 1039988.734 units remaining) + [ 922337203685477580700 + Unit ] + - location: 15 (remaining gas: 1039988.724 units remaining) + [ 10 + 922337203685477580700 + Unit ] Fatal error: error running script diff --git a/tests_python/tests_alpha/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_arithmetic_overflow[mul_overflow.tz-Unit-Right Unit].out b/tests_python/tests_alpha/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_arithmetic_overflow[mul_overflow.tz-Unit-Right Unit].out index c303c69798a92ced0f2c750f0d90cfbef7580ff6..0235bfdde906c019d0852a2136388e015fe2903d 100644 --- a/tests_python/tests_alpha/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_arithmetic_overflow[mul_overflow.tz-Unit-Right Unit].out +++ b/tests_python/tests_alpha/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_arithmetic_overflow[mul_overflow.tz-Unit-Right Unit].out @@ -22,5 +22,19 @@ Runtime error in contract [CONTRACT_HASH]: 19: At line 14 characters 11 to 14, unexpected arithmetic overflow +trace + - location: 9 (remaining gas: 1039988.754 units remaining) + [ (Pair (Right Unit) Unit) ] + - location: 9 (remaining gas: 1039988.744 units remaining) + [ (Right Unit) ] + - location: 10 (remaining gas: 1039988.744 units remaining) + [ Unit ] + - location: 21 (remaining gas: 1039988.734 units remaining) + [ 10 + Unit ] + - location: 24 (remaining gas: 1039988.724 units remaining) + [ 922337203685477580700 + 10 + Unit ] Fatal error: error running script diff --git a/tests_python/tests_alpha/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_arithmetic_overflow[shifts.tz-None-(Left (Pair 1 257))].out b/tests_python/tests_alpha/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_arithmetic_overflow[shifts.tz-None-(Left (Pair 1 257))].out index 9b603a2c03b1f3d2a75cc24fb49aa47b5a0c97d4..711cbc578330f9e31c40c34aa7ff2bfb8905085e 100644 --- a/tests_python/tests_alpha/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_arithmetic_overflow[shifts.tz-None-(Left (Pair 1 257))].out +++ b/tests_python/tests_alpha/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_arithmetic_overflow[shifts.tz-None-(Left (Pair 1 257))].out @@ -22,5 +22,15 @@ Runtime error in contract [CONTRACT_HASH]: 19: At line 10 characters 25 to 28, unexpected arithmetic overflow +trace + - location: 14 (remaining gas: 1039991.189 units remaining) + [ (Pair (Left (Pair 1 257)) None) ] + - location: 14 (remaining gas: 1039991.179 units remaining) + [ (Left (Pair 1 257)) ] + - location: 15 (remaining gas: 1039991.179 units remaining) + [ (Pair 1 257) ] + - location: 17 (remaining gas: 1039991.169 units remaining) + [ 1 + 257 ] Fatal error: error running script diff --git a/tests_python/tests_alpha/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_arithmetic_overflow[shifts.tz-None-(Left (Pair 123 257))].out b/tests_python/tests_alpha/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_arithmetic_overflow[shifts.tz-None-(Left (Pair 123 257))].out index 5d17645926e2d3eac74003c3dac8a0e2ead69909..d818d78bde3a707de1f128d70fdae831338735af 100644 --- a/tests_python/tests_alpha/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_arithmetic_overflow[shifts.tz-None-(Left (Pair 123 257))].out +++ b/tests_python/tests_alpha/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_arithmetic_overflow[shifts.tz-None-(Left (Pair 123 257))].out @@ -22,5 +22,15 @@ Runtime error in contract [CONTRACT_HASH]: 19: At line 10 characters 25 to 28, unexpected arithmetic overflow +trace + - location: 14 (remaining gas: 1039991.189 units remaining) + [ (Pair (Left (Pair 123 257)) None) ] + - location: 14 (remaining gas: 1039991.179 units remaining) + [ (Left (Pair 123 257)) ] + - location: 15 (remaining gas: 1039991.179 units remaining) + [ (Pair 123 257) ] + - location: 17 (remaining gas: 1039991.169 units remaining) + [ 123 + 257 ] Fatal error: error running script diff --git a/tests_python/tests_alpha/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_arithmetic_overflow[shifts.tz-None-(Right (Pair 1 257))].out b/tests_python/tests_alpha/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_arithmetic_overflow[shifts.tz-None-(Right (Pair 1 257))].out index aa5d8727677bb207d781369456bf0722fd840e0f..01871dc127fcfc43476d284f0e4ca3770da2f164 100644 --- a/tests_python/tests_alpha/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_arithmetic_overflow[shifts.tz-None-(Right (Pair 1 257))].out +++ b/tests_python/tests_alpha/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_arithmetic_overflow[shifts.tz-None-(Right (Pair 1 257))].out @@ -22,5 +22,15 @@ Runtime error in contract [CONTRACT_HASH]: 19: At line 13 characters 25 to 28, unexpected arithmetic overflow +trace + - location: 14 (remaining gas: 1039991.189 units remaining) + [ (Pair (Right (Pair 1 257)) None) ] + - location: 14 (remaining gas: 1039991.179 units remaining) + [ (Right (Pair 1 257)) ] + - location: 15 (remaining gas: 1039991.179 units remaining) + [ (Pair 1 257) ] + - location: 20 (remaining gas: 1039991.169 units remaining) + [ 1 + 257 ] Fatal error: error running script diff --git a/tests_python/tests_alpha/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_arithmetic_overflow[shifts.tz-None-(Right (Pair 123 257))].out b/tests_python/tests_alpha/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_arithmetic_overflow[shifts.tz-None-(Right (Pair 123 257))].out index 9a98e4716557b6ad6e73faab984f3e0b1cb0251a..4bdbdf85afc687cdd9e58692f868b00a6a8be082 100644 --- a/tests_python/tests_alpha/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_arithmetic_overflow[shifts.tz-None-(Right (Pair 123 257))].out +++ b/tests_python/tests_alpha/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_arithmetic_overflow[shifts.tz-None-(Right (Pair 123 257))].out @@ -22,5 +22,15 @@ Runtime error in contract [CONTRACT_HASH]: 19: At line 13 characters 25 to 28, unexpected arithmetic overflow +trace + - location: 14 (remaining gas: 1039991.189 units remaining) + [ (Pair (Right (Pair 123 257)) None) ] + - location: 14 (remaining gas: 1039991.179 units remaining) + [ (Right (Pair 123 257)) ] + - location: 15 (remaining gas: 1039991.179 units remaining) + [ (Pair 123 257) ] + - location: 20 (remaining gas: 1039991.169 units remaining) + [ 123 + 257 ] Fatal error: error running script diff --git a/tests_python/tests_alpha/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_hash_consistency_michelson_cli.out b/tests_python/tests_alpha/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_hash_consistency_michelson_cli.out index 7db1308a067bb355cd312da965c484fd02c01460..f1bc7e15e20808e9eafaed13af5849ad96d712ef 100644 --- a/tests_python/tests_alpha/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_hash_consistency_michelson_cli.out +++ b/tests_python/tests_alpha/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_hash_consistency_michelson_cli.out @@ -13,6 +13,20 @@ emitted operations big_map diff +trace + - location: 11 (remaining gas: 1039993.856 units remaining) + [ (Pair (Pair 22220000000 "2017-12-13T04:49:00Z" 34) 0x00) ] + - location: 11 (remaining gas: 1039993.846 units remaining) + [ (Pair 22220000000 "2017-12-13T04:49:00Z" 34) ] + - location: 12 (remaining gas: 1039992.516 units remaining) + [ 0x0507070080acd2c6a501070700bcc485a30b0022 ] + - location: 13 (remaining gas: 1039992.064 units remaining) + [ 0x95a69fcbbf773989333dc9b31e246575812dbea19d25089f83a2aeeea16ab4bc ] + - location: 14 (remaining gas: 1039992.054 units remaining) + [ {} + 0x95a69fcbbf773989333dc9b31e246575812dbea19d25089f83a2aeeea16ab4bc ] + - location: 16 (remaining gas: 1039992.044 units remaining) + [ (Pair {} 0x95a69fcbbf773989333dc9b31e246575812dbea19d25089f83a2aeeea16ab4bc) ] storage 0x95a69fcbbf773989333dc9b31e246575812dbea19d25089f83a2aeeea16ab4bc @@ -20,4 +34,18 @@ emitted operations big_map diff +trace + - location: 11 (remaining gas: 1039993.856 units remaining) + [ (Pair (Pair 22220000000 "2017-12-13T04:49:00Z" 34) 0x00) ] + - location: 11 (remaining gas: 1039993.846 units remaining) + [ (Pair 22220000000 "2017-12-13T04:49:00Z" 34) ] + - location: 12 (remaining gas: 1039992.516 units remaining) + [ 0x0507070080acd2c6a501070700bcc485a30b0022 ] + - location: 13 (remaining gas: 1039992.064 units remaining) + [ 0x95a69fcbbf773989333dc9b31e246575812dbea19d25089f83a2aeeea16ab4bc ] + - location: 14 (remaining gas: 1039992.054 units remaining) + [ {} + 0x95a69fcbbf773989333dc9b31e246575812dbea19d25089f83a2aeeea16ab4bc ] + - location: 16 (remaining gas: 1039992.044 units remaining) + [ (Pair {} 0x95a69fcbbf773989333dc9b31e246575812dbea19d25089f83a2aeeea16ab4bc) ] diff --git "a/tests_python/tests_alpha/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_map_map_sideeffect[map_map_sideeffect.tz-(Pair { Elt \"bar\" 5 ; Elt \"foo\" 1 } .480b9afc63.out" "b/tests_python/tests_alpha/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_map_map_sideeffect[map_map_sideeffect.tz-(Pair { Elt \"bar\" 5 ; Elt \"foo\" 1 } .480b9afc63.out" index d69284a78e7899547766e774fb21f68163795ab5..d5275ad1baa602efd0616a45ffbc3b6fbec9a336 100644 --- "a/tests_python/tests_alpha/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_map_map_sideeffect[map_map_sideeffect.tz-(Pair { Elt \"bar\" 5 ; Elt \"foo\" 1 } .480b9afc63.out" +++ "b/tests_python/tests_alpha/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_map_map_sideeffect[map_map_sideeffect.tz-(Pair { Elt \"bar\" 5 ; Elt \"foo\" 1 } .480b9afc63.out" @@ -6,4 +6,150 @@ emitted operations big_map diff +trace + - location: 11 (remaining gas: 1039982.728 units remaining) + [ (Pair 15 { Elt "bar" 5 ; Elt "foo" 1 } 6) ] + - location: 11 (remaining gas: 1039982.718 units remaining) + [ 15 + (Pair { Elt "bar" 5 ; Elt "foo" 1 } 6) ] + - location: 12 (remaining gas: 1039982.708 units remaining) + [ (Pair { Elt "bar" 5 ; Elt "foo" 1 } 6) + 15 ] + - location: 13 (remaining gas: 1039982.698 units remaining) + [ { Elt "bar" 5 ; Elt "foo" 1 } + 15 ] + - location: 14 (remaining gas: 1039982.698 units remaining) + [ ] + - location: 17 (remaining gas: 1039982.688 units remaining) + [ 0 ] + - location: 14 (remaining gas: 1039982.663 units remaining) + [ 15 + 0 ] + - location: 14 (remaining gas: 1039982.653 units remaining) + [ { Elt "bar" 5 ; Elt "foo" 1 } + 15 + 0 ] + - location: 14 (remaining gas: 1039982.653 units remaining) + [ { Elt "bar" 5 ; Elt "foo" 1 } + 15 + 0 ] + - location: 20 (remaining gas: 1039982.653 units remaining) + [ (Pair "bar" 5) + 15 + 0 ] + - location: 22 (remaining gas: 1039982.643 units remaining) + [ 5 + 15 + 0 ] + - location: 23 (remaining gas: 1039982.643 units remaining) + [ 15 + 0 ] + - location: 25 (remaining gas: 1039982.633 units remaining) + [ 15 + 15 + 0 ] + - location: 23 (remaining gas: 1039982.608 units remaining) + [ 5 + 15 + 15 + 0 ] + - location: 26 (remaining gas: 1039982.573 units remaining) + [ 20 + 15 + 0 ] + - location: 27 (remaining gas: 1039982.563 units remaining) + [ 20 + 20 + 15 + 0 ] + - location: 28 (remaining gas: 1039982.515 units remaining) + [ 20 + 15 + 20 + 0 ] + - location: 30 (remaining gas: 1039982.515 units remaining) + [ 20 + 0 ] + - location: 33 (remaining gas: 1039982.480 units remaining) + [ 20 ] + - location: 30 (remaining gas: 1039982.455 units remaining) + [ 15 + 20 ] + - location: 30 (remaining gas: 1039982.445 units remaining) + [ 20 + 15 + 20 ] + - location: 30 (remaining gas: 1039982.445 units remaining) + [ 20 + 15 + 20 ] + - location: 20 (remaining gas: 1039982.430 units remaining) + [ (Pair "foo" 1) + 15 + 20 ] + - location: 22 (remaining gas: 1039982.420 units remaining) + [ 1 + 15 + 20 ] + - location: 23 (remaining gas: 1039982.420 units remaining) + [ 15 + 20 ] + - location: 25 (remaining gas: 1039982.410 units remaining) + [ 15 + 15 + 20 ] + - location: 23 (remaining gas: 1039982.385 units remaining) + [ 1 + 15 + 15 + 20 ] + - location: 26 (remaining gas: 1039982.350 units remaining) + [ 16 + 15 + 20 ] + - location: 27 (remaining gas: 1039982.340 units remaining) + [ 16 + 16 + 15 + 20 ] + - location: 28 (remaining gas: 1039982.292 units remaining) + [ 16 + 15 + 16 + 20 ] + - location: 30 (remaining gas: 1039982.292 units remaining) + [ 16 + 20 ] + - location: 33 (remaining gas: 1039982.257 units remaining) + [ 36 ] + - location: 30 (remaining gas: 1039982.232 units remaining) + [ 15 + 36 ] + - location: 30 (remaining gas: 1039982.222 units remaining) + [ 16 + 15 + 36 ] + - location: 30 (remaining gas: 1039982.222 units remaining) + [ 16 + 15 + 36 ] + - location: 20 (remaining gas: 1039982.207 units remaining) + [ { Elt "bar" 20 ; Elt "foo" 16 } + 15 + 36 ] + - location: 34 (remaining gas: 1039982.207 units remaining) + [ 15 + 36 ] + - location: 36 (remaining gas: 1039982.197 units remaining) + [ 36 ] + - location: 34 (remaining gas: 1039982.172 units remaining) + [ { Elt "bar" 20 ; Elt "foo" 16 } + 36 ] + - location: 37 (remaining gas: 1039982.162 units remaining) + [ (Pair { Elt "bar" 20 ; Elt "foo" 16 } 36) ] + - location: 38 (remaining gas: 1039982.152 units remaining) + [ {} + (Pair { Elt "bar" 20 ; Elt "foo" 16 } 36) ] + - location: 40 (remaining gas: 1039982.142 units remaining) + [ (Pair {} { Elt "bar" 20 ; Elt "foo" 16 } 36) ] diff --git "a/tests_python/tests_alpha/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_map_map_sideeffect[map_map_sideeffect.tz-(Pair { Elt \"foo\" 1 } 1)-10-(Pair { .811573b5a7.out" "b/tests_python/tests_alpha/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_map_map_sideeffect[map_map_sideeffect.tz-(Pair { Elt \"foo\" 1 } 1)-10-(Pair { .811573b5a7.out" index 552369f88901409b2f7dd944055dc25e322e7f82..07c8fdd630b67fafeee414c89b60b78c2e9f8e49 100644 --- "a/tests_python/tests_alpha/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_map_map_sideeffect[map_map_sideeffect.tz-(Pair { Elt \"foo\" 1 } 1)-10-(Pair { .811573b5a7.out" +++ "b/tests_python/tests_alpha/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_map_map_sideeffect[map_map_sideeffect.tz-(Pair { Elt \"foo\" 1 } 1)-10-(Pair { .811573b5a7.out" @@ -6,4 +6,100 @@ emitted operations big_map diff +trace + - location: 11 (remaining gas: 1039983.099 units remaining) + [ (Pair 10 { Elt "foo" 1 } 1) ] + - location: 11 (remaining gas: 1039983.089 units remaining) + [ 10 + (Pair { Elt "foo" 1 } 1) ] + - location: 12 (remaining gas: 1039983.079 units remaining) + [ (Pair { Elt "foo" 1 } 1) + 10 ] + - location: 13 (remaining gas: 1039983.069 units remaining) + [ { Elt "foo" 1 } + 10 ] + - location: 14 (remaining gas: 1039983.069 units remaining) + [ ] + - location: 17 (remaining gas: 1039983.059 units remaining) + [ 0 ] + - location: 14 (remaining gas: 1039983.034 units remaining) + [ 10 + 0 ] + - location: 14 (remaining gas: 1039983.024 units remaining) + [ { Elt "foo" 1 } + 10 + 0 ] + - location: 14 (remaining gas: 1039983.024 units remaining) + [ { Elt "foo" 1 } + 10 + 0 ] + - location: 20 (remaining gas: 1039983.024 units remaining) + [ (Pair "foo" 1) + 10 + 0 ] + - location: 22 (remaining gas: 1039983.014 units remaining) + [ 1 + 10 + 0 ] + - location: 23 (remaining gas: 1039983.014 units remaining) + [ 10 + 0 ] + - location: 25 (remaining gas: 1039983.004 units remaining) + [ 10 + 10 + 0 ] + - location: 23 (remaining gas: 1039982.979 units remaining) + [ 1 + 10 + 10 + 0 ] + - location: 26 (remaining gas: 1039982.944 units remaining) + [ 11 + 10 + 0 ] + - location: 27 (remaining gas: 1039982.934 units remaining) + [ 11 + 11 + 10 + 0 ] + - location: 28 (remaining gas: 1039982.886 units remaining) + [ 11 + 10 + 11 + 0 ] + - location: 30 (remaining gas: 1039982.886 units remaining) + [ 11 + 0 ] + - location: 33 (remaining gas: 1039982.851 units remaining) + [ 11 ] + - location: 30 (remaining gas: 1039982.826 units remaining) + [ 10 + 11 ] + - location: 30 (remaining gas: 1039982.816 units remaining) + [ 11 + 10 + 11 ] + - location: 30 (remaining gas: 1039982.816 units remaining) + [ 11 + 10 + 11 ] + - location: 20 (remaining gas: 1039982.801 units remaining) + [ { Elt "foo" 11 } + 10 + 11 ] + - location: 34 (remaining gas: 1039982.801 units remaining) + [ 10 + 11 ] + - location: 36 (remaining gas: 1039982.791 units remaining) + [ 11 ] + - location: 34 (remaining gas: 1039982.766 units remaining) + [ { Elt "foo" 11 } + 11 ] + - location: 37 (remaining gas: 1039982.756 units remaining) + [ (Pair { Elt "foo" 11 } 11) ] + - location: 38 (remaining gas: 1039982.746 units remaining) + [ {} + (Pair { Elt "foo" 11 } 11) ] + - location: 40 (remaining gas: 1039982.736 units remaining) + [ (Pair {} { Elt "foo" 11 } 11) ] diff --git a/tests_python/tests_alpha/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_map_map_sideeffect[map_map_sideeffect.tz-(Pair {} 0)-10-(Pair {} 0)].out b/tests_python/tests_alpha/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_map_map_sideeffect[map_map_sideeffect.tz-(Pair {} 0)-10-(Pair {} 0)].out index 590ebc41cd68f763af896dc2ef0fb17e3631a377..7b31a83abe22a9f1d61898c74b626726b1284406 100644 --- a/tests_python/tests_alpha/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_map_map_sideeffect[map_map_sideeffect.tz-(Pair {} 0)-10-(Pair {} 0)].out +++ b/tests_python/tests_alpha/_regtest_outputs/test_contract_opcodes.TestContractOpcodes::test_map_map_sideeffect[map_map_sideeffect.tz-(Pair {} 0)-10-(Pair {} 0)].out @@ -6,4 +6,50 @@ emitted operations big_map diff +trace + - location: 11 (remaining gas: 1039983.429 units remaining) + [ (Pair 10 {} 0) ] + - location: 11 (remaining gas: 1039983.419 units remaining) + [ 10 + (Pair {} 0) ] + - location: 12 (remaining gas: 1039983.409 units remaining) + [ (Pair {} 0) + 10 ] + - location: 13 (remaining gas: 1039983.399 units remaining) + [ {} + 10 ] + - location: 14 (remaining gas: 1039983.399 units remaining) + [ ] + - location: 17 (remaining gas: 1039983.389 units remaining) + [ 0 ] + - location: 14 (remaining gas: 1039983.364 units remaining) + [ 10 + 0 ] + - location: 14 (remaining gas: 1039983.354 units remaining) + [ {} + 10 + 0 ] + - location: 14 (remaining gas: 1039983.354 units remaining) + [ {} + 10 + 0 ] + - location: 20 (remaining gas: 1039983.354 units remaining) + [ {} + 10 + 0 ] + - location: 34 (remaining gas: 1039983.354 units remaining) + [ 10 + 0 ] + - location: 36 (remaining gas: 1039983.344 units remaining) + [ 0 ] + - location: 34 (remaining gas: 1039983.319 units remaining) + [ {} + 0 ] + - location: 37 (remaining gas: 1039983.309 units remaining) + [ (Pair {} 0) ] + - location: 38 (remaining gas: 1039983.299 units remaining) + [ {} + (Pair {} 0) ] + - location: 40 (remaining gas: 1039983.289 units remaining) + [ (Pair {} {} 0) ] diff --git a/tests_python/tests_alpha/test_contract_opcodes.py b/tests_python/tests_alpha/test_contract_opcodes.py index 7b35f161b04250bb6325430e7735f0716a81bdeb..b4864f6e99a2c950853cc2f2525cb87ce7c384ab 100644 --- a/tests_python/tests_alpha/test_contract_opcodes.py +++ b/tests_python/tests_alpha/test_contract_opcodes.py @@ -1863,12 +1863,14 @@ class TestContractOpcodes: hash_contract, '0x00', '(Pair 22220000000 (Pair "2017-12-13T04:49:00Z" 034))', + trace_stack=True, ) assert run_script_res.storage == hash_result run_script_res = client.run_script( hash_contract, '0x00', '(Pair 22220000000 (Pair "2017-12-13T04:49:00Z" 034))', + trace_stack=True, ) assert run_script_res.storage == hash_result @@ -1895,7 +1897,7 @@ class TestContractOpcodes: contract = path.join(OPCODES_CONTRACT_PATH, contract) with assert_run_failure(r'unexpected arithmetic overflow'): - client.run_script(contract, param, storage) + client.run_script(contract, param, storage, trace_stack=True) @pytest.mark.skip(reason="Bug in annotation system") def test_fails_annotated_set_car_cdr( @@ -1909,6 +1911,7 @@ class TestContractOpcodes: path.join(OPCODES_CONTRACT_PATH, 'set_car.tz'), '(Pair %wrong %field "hello" 0)', '""', + trace_stack=True, ) @pytest.mark.parametrize( @@ -1940,5 +1943,7 @@ class TestContractOpcodes: ): client = client_regtest contract = path.join(OPCODES_CONTRACT_PATH, contract) - run_script_res = client.run_script(contract, storage, param) + run_script_res = client.run_script( + contract, storage, param, trace_stack=True + ) assert run_script_res.storage == expected