You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
common/compiler: add metadata output for solc > 0.4.6
Metadata is provided as JSON string, rather than as JSON object. This
ensures that we can decode to a set of bytes that will be consistent
with the swarm hash embedded in the code, without worrying about
ambiguities of spacing, ordering, or escaping.
Copy file name to clipboardExpand all lines: common/compiler/solidity_test.go
+4-33Lines changed: 4 additions & 33 deletions
Original file line number
Diff line number
Diff line change
@@ -17,14 +17,8 @@
17
17
package compiler
18
18
19
19
import (
20
-
"encoding/json"
21
-
"io/ioutil"
22
-
"os"
23
20
"os/exec"
24
-
"path"
25
21
"testing"
26
-
27
-
"github.com/ethereum/go-ethereum/common"
28
22
)
29
23
30
24
const (
@@ -36,7 +30,6 @@ contract test {
36
30
}
37
31
}
38
32
`
39
-
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":{}}}`
0 commit comments