From dc098ee1bc0c1077c22c1b9ab2ac092fc3ac9aef Mon Sep 17 00:00:00 2001 From: Bernhard Mueller Date: Sun, 18 Nov 2018 22:51:43 +0700 Subject: [PATCH] Pretty-print ether_send.json --- .../outputs_expected/ether_send.sol.o.json | 31 ++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/tests/testdata/outputs_expected/ether_send.sol.o.json b/tests/testdata/outputs_expected/ether_send.sol.o.json index 4a59efc6..1dc1cd5f 100644 --- a/tests/testdata/outputs_expected/ether_send.sol.o.json +++ b/tests/testdata/outputs_expected/ether_send.sol.o.json @@ -1 +1,30 @@ -{"error": null, "issues": [{"address": 722, "contract": "Unknown", "debug": "", "description": "Arbitrary senders other than the contract creator can withdraw ETH from the contract account without previously having sent an equivalent amount of ETH to it. This is likely to be a vulnerability.", "function": "withdrawfunds()", "max_gas_used": 1749, "min_gas_used": 1138, "swc-id": "105", "title": "Ether thief", "type": "Warning"}, {"address": 883, "contract": "Unknown", "debug": "", "description": "This binary add operation can result in integer overflow.\n", "function": "invest()", "max_gas_used": 1856, "min_gas_used": 1571, "swc-id": "101", "title": "Integer Overflow", "type": "Warning"}], "success": true} \ No newline at end of file +{ + "error": null, + "issues": [ + { + "address": 722, + "contract": "Unknown", + "debug": "", + "description": "Arbitrary senders other than the contract creator can withdraw ETH from the contract account without previously having sent an equivalent amount of ETH to it. This is likely to be a vulnerability.", + "function": "withdrawfunds()", + "max_gas_used": 1749, + "min_gas_used": 1138, + "swc-id": "105", + "title": "Ether thief", + "type": "Warning" + }, + { + "address": 883, + "contract": "Unknown", + "debug": "", + "description": "This binary add operation can result in integer overflow.\n", + "function": "invest()", + "max_gas_used": 1856, + "min_gas_used": 1571, + "swc-id": "101", + "title": "Integer Overflow", + "type": "Warning" + } + ], + "success": true +}