common/compiler, cmd/abigen: fixed linter errors, ran gofmt

This commit is contained in:
Kushagra Sharma 2019-03-06 12:55:01 +01:00
parent 4fc7a53e85
commit a992762ebd
4 changed files with 289 additions and 285 deletions

View file

@ -152,6 +152,7 @@ func main() {
types = append(types, kind)
}
// Generate the contract binding
fmt.Printf("%+v", abis)
code, err := bind.Bind(types, abis, bins, *pkgFlag, lang)
if err != nil {
fmt.Printf("Failed to generate ABI binding: %v\n", err)

View file

@ -32,6 +32,9 @@ func TestVyperCompiler(t *testing.T) {
testSource := []string{"test.v.py"}
source, err := slurpFiles(testSource)
if err != nil {
t.Error("couldn't read test files")
}
contracts, err := CompileVyper("", testSource...)
if err != nil {
t.Fatalf("error compiling test.v.py. result %v: %v", contracts, err)