From dcc5d4cc47cf5fb8bcc1b5a5190f83fa676f446c Mon Sep 17 00:00:00 2001 From: Nathan Date: Thu, 29 Nov 2018 14:40:01 -0500 Subject: [PATCH] nicer json formatting for expected outputs --- .../kinds_of_calls.sol.o.json | 55 ++++++++++++++++++- 1 file changed, 54 insertions(+), 1 deletion(-) diff --git a/tests/testdata/outputs_expected/kinds_of_calls.sol.o.json b/tests/testdata/outputs_expected/kinds_of_calls.sol.o.json index 1a74d42f..6ea83346 100644 --- a/tests/testdata/outputs_expected/kinds_of_calls.sol.o.json +++ b/tests/testdata/outputs_expected/kinds_of_calls.sol.o.json @@ -1 +1,54 @@ -{"error": null, "issues": [{"address": 626, "contract": "Unknown", "debug": "", "description": "The return value of an external call is not checked. Note that execution continue even if the called contract throws.", "function": "_function_0x141f32ff", "max_gas_used": 35856, "min_gas_used": 1104, "swc-id": "104", "title": "Unchecked CALL return value", "type": "Informational"}, {"address": 857, "contract": "Unknown", "debug": "", "description": "The return value of an external call is not checked. Note that execution continue even if the called contract throws.", "function": "_function_0x9b58bc26", "max_gas_used": 35913, "min_gas_used": 1161, "swc-id": "104", "title": "Unchecked CALL return value", "type": "Informational"}, {"address": 1038, "contract": "Unknown", "debug": "", "description": "This contract executes a message call to an address provided as a function argument. Generally, it is not recommended to call user-supplied addresses using Solidity's call() construct. Note that attackers might leverage reentrancy attacks to exploit race conditions or manipulate this contract's state.", "function": "_function_0xeea4c864", "max_gas_used": 1223, "min_gas_used": 471, "swc-id": "107", "title": "Message call to external contract", "type": "Warning"}, {"address": 1046, "contract": "Unknown", "debug": "", "description": "The return value of an external call is not checked. Note that execution continue even if the called contract throws.", "function": "_function_0xeea4c864", "max_gas_used": 35938, "min_gas_used": 1186, "swc-id": "104", "title": "Unchecked CALL return value", "type": "Informational"}], "success": true} \ No newline at end of file +{ + "error": null, + "issues": [ + { + "address": 626, + "contract": "Unknown", + "debug": "", + "description": "The return value of an external call is not checked. Note that execution continue even if the called contract throws.", + "function": "_function_0x141f32ff", + "max_gas_used": 35856, + "min_gas_used": 1104, + "swc-id": "104", + "title": "Unchecked CALL return value", + "type": "Informational" + }, + { + "address": 857, + "contract": "Unknown", + "debug": "", + "description": "The return value of an external call is not checked. Note that execution continue even if the called contract throws.", + "function": "_function_0x9b58bc26", + "max_gas_used": 35913, + "min_gas_used": 1161, + "swc-id": "104", + "title": "Unchecked CALL return value", + "type": "Informational" + }, + { + "address": 1038, + "contract": "Unknown", + "debug": "", + "description": "This contract executes a message call to an address provided as a function argument. Generally, it is not recommended to call user-supplied addresses using Solidity's call() construct. Note that attackers might leverage reentrancy attacks to exploit race conditions or manipulate this contract's state.", + "function": "_function_0xeea4c864", + "max_gas_used": 1223, + "min_gas_used": 471, + "swc-id": "107", + "title": "Message call to external contract", + "type": "Warning" + }, + { + "address": 1046, + "contract": "Unknown", + "debug": "", + "description": "The return value of an external call is not checked. Note that execution continue even if the called contract throws.", + "function": "_function_0xeea4c864", + "max_gas_used": 35938, + "min_gas_used": 1186, + "swc-id": "104", + "title": "Unchecked CALL return value", + "type": "Informational" + } + ], + "success": true +}