aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2017-01-17 20:38:57 +0800
committerGitHub <noreply@github.com>2017-01-17 20:38:57 +0800
commitd63752ef4d4e455f2f8f0acebf89e482534b0ef1 (patch)
tree91bdef3dc7974a1663d9b0de1d8efadbabb465af /common
parent6fb76443b34ac5797c4b561ec38148eb3868a47e (diff)
parent54a65e6d87800ba5ecb8a14621d4aff0bfa56ada (diff)
downloaddexon-d63752ef4d4e455f2f8f0acebf89e482534b0ef1.tar
dexon-d63752ef4d4e455f2f8f0acebf89e482534b0ef1.tar.gz
dexon-d63752ef4d4e455f2f8f0acebf89e482534b0ef1.tar.bz2
dexon-d63752ef4d4e455f2f8f0acebf89e482534b0ef1.tar.lz
dexon-d63752ef4d4e455f2f8f0acebf89e482534b0ef1.tar.xz
dexon-d63752ef4d4e455f2f8f0acebf89e482534b0ef1.tar.zst
dexon-d63752ef4d4e455f2f8f0acebf89e482534b0ef1.zip
Merge pull request #3579 from bas-vk/natspec
cmd,eth,les,internal: remove natspec support
Diffstat (limited to 'common')
-rw-r--r--common/compiler/solidity_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/compiler/solidity_test.go b/common/compiler/solidity_test.go
index 8ba9e55d0..f16637547 100644
--- a/common/compiler/solidity_test.go
+++ b/common/compiler/solidity_test.go
@@ -36,7 +36,7 @@ contract test {
}
}
`
- testInfo = `{"source":"\ncontract test {\n /// @notice Will multiply ` + "`a`" + ` by 7.\n function multiply(uint a) returns(uint d) {\n return a * 7;\n }\n}\n","language":"Solidity","languageVersion":"0.1.1","compilerVersion":"0.1.1","compilerOptions":"--binary file --json-abi file --natspec-user file --natspec-dev file --add-std 1","abiDefinition":[{"constant":false,"inputs":[{"name":"a","type":"uint256"}],"name":"multiply","outputs":[{"name":"d","type":"uint256"}],"type":"function"}],"userDoc":{"methods":{"multiply(uint256)":{"notice":"Will multiply ` + "`a`" + ` by 7."}}},"developerDoc":{"methods":{}}}`
+ testInfo = `{"source":"\ncontract test {\n /// @notice Will multiply ` + "`a`" + ` by 7.\n function multiply(uint a) returns(uint d) {\n return a * 7;\n }\n}\n","language":"Solidity","languageVersion":"0.1.1","compilerVersion":"0.1.1","compilerOptions":"--binary file --json-abi file --add-std 1","abiDefinition":[{"constant":false,"inputs":[{"name":"a","type":"uint256"}],"name":"multiply","outputs":[{"name":"d","type":"uint256"}],"type":"function"}],"userDoc":{"methods":{"multiply(uint256)":{"notice":"Will multiply ` + "`a`" + ` by 7."}}},"developerDoc":{"methods":{}}}`
)
func skipWithoutSolc(t *testing.T) {
@@ -99,7 +99,7 @@ func TestSaveInfo(t *testing.T) {
if string(got) != testInfo {
t.Errorf("incorrect info.json extracted, expected:\n%s\ngot\n%s", testInfo, string(got))
}
- wantHash := common.HexToHash("0x9f3803735e7f16120c5a140ab3f02121fd3533a9655c69b33a10e78752cc49b0")
+ wantHash := common.HexToHash("0x22450a77f0c3ff7a395948d07bc1456881226a1b6325f4189cb5f1254a824080")
if cinfohash != wantHash {
t.Errorf("content hash for info is incorrect. expected %v, got %v", wantHash.Hex(), cinfohash.Hex())
}