aboutsummaryrefslogtreecommitdiffstats
path: root/common/compiler/solidity_test.go
diff options
context:
space:
mode:
authorBas van Kervel <basvankervel@gmail.com>2017-01-17 18:35:07 +0800
committerBas van Kervel <basvankervel@gmail.com>2017-01-17 19:13:50 +0800
commit54a65e6d87800ba5ecb8a14621d4aff0bfa56ada (patch)
tree92463956d946655c9ba04f7505a7911dea1f919a /common/compiler/solidity_test.go
parent26d385c18b5eb003d9a69ff618c78acbe594db44 (diff)
downloaddexon-54a65e6d87800ba5ecb8a14621d4aff0bfa56ada.tar
dexon-54a65e6d87800ba5ecb8a14621d4aff0bfa56ada.tar.gz
dexon-54a65e6d87800ba5ecb8a14621d4aff0bfa56ada.tar.bz2
dexon-54a65e6d87800ba5ecb8a14621d4aff0bfa56ada.tar.lz
dexon-54a65e6d87800ba5ecb8a14621d4aff0bfa56ada.tar.xz
dexon-54a65e6d87800ba5ecb8a14621d4aff0bfa56ada.tar.zst
dexon-54a65e6d87800ba5ecb8a14621d4aff0bfa56ada.zip
cmd,eth,les,internal: remove natspec support
Diffstat (limited to 'common/compiler/solidity_test.go')
-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())
}