From f54c90a0bad87f3bba2e44d616292138caeba5d8 Mon Sep 17 00:00:00 2001 From: Lefteris Karapetsas Date: Tue, 13 Jan 2015 15:59:42 +0100 Subject: [PATCH 1/3] A first version of Natspec warning popup - Runtime Contract code hash can now be retrieved from the Compiler - Using the hash the Natspec handler stores and later retrieves Natspec JSON for a given contract. --- example/natspec_contract.html | 76 +++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 example/natspec_contract.html diff --git a/example/natspec_contract.html b/example/natspec_contract.html new file mode 100644 index 000000000..b8e3bc617 --- /dev/null +++ b/example/natspec_contract.html @@ -0,0 +1,76 @@ + + + + + + + + + +

contract

+
+
+ +
+ +
+ + + From dac93ed6162cbc0e97666d293a982fa90e5bed81 Mon Sep 17 00:00:00 2001 From: Lefteris Karapetsas Date: Tue, 13 Jan 2015 17:54:09 +0100 Subject: [PATCH 2/3] Natspechandler: Get function hash from transaction data --- example/natspec_contract.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/natspec_contract.html b/example/natspec_contract.html index b8e3bc617..94edda68d 100644 --- a/example/natspec_contract.html +++ b/example/natspec_contract.html @@ -12,7 +12,7 @@ // solidity source code var source = "" + "contract test {\n" + - " /// @notice This is an awesome function for multiplication. \n" + + " /// @notice Will multiplty `a` by 7. \n" + " function multiply(uint a) returns(uint d) {\n" + " return a * 7;\n" + " }\n" + From a4049fb85c8b81313b99d0ab38a7c3024df8f6b2 Mon Sep 17 00:00:00 2001 From: Lefteris Karapetsas Date: Wed, 14 Jan 2015 09:28:52 +0100 Subject: [PATCH 3/3] Cleaned up some unused functions --- example/natspec_contract.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/example/natspec_contract.html b/example/natspec_contract.html index 94edda68d..8d12b4a81 100644 --- a/example/natspec_contract.html +++ b/example/natspec_contract.html @@ -68,7 +68,8 @@