mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
common/compiler, cmd/abigen: fixed linter errors, ran gofmt
This commit is contained in:
parent
4fc7a53e85
commit
a992762ebd
4 changed files with 289 additions and 285 deletions
|
|
@ -152,6 +152,7 @@ func main() {
|
||||||
types = append(types, kind)
|
types = append(types, kind)
|
||||||
}
|
}
|
||||||
// Generate the contract binding
|
// Generate the contract binding
|
||||||
|
fmt.Printf("%+v", abis)
|
||||||
code, err := bind.Bind(types, abis, bins, *pkgFlag, lang)
|
code, err := bind.Bind(types, abis, bins, *pkgFlag, lang)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Printf("Failed to generate ABI binding: %v\n", err)
|
fmt.Printf("Failed to generate ABI binding: %v\n", err)
|
||||||
|
|
|
||||||
|
|
@ -32,6 +32,9 @@ func TestVyperCompiler(t *testing.T) {
|
||||||
|
|
||||||
testSource := []string{"test.v.py"}
|
testSource := []string{"test.v.py"}
|
||||||
source, err := slurpFiles(testSource)
|
source, err := slurpFiles(testSource)
|
||||||
|
if err != nil {
|
||||||
|
t.Error("couldn't read test files")
|
||||||
|
}
|
||||||
contracts, err := CompileVyper("", testSource...)
|
contracts, err := CompileVyper("", testSource...)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf("error compiling test.v.py. result %v: %v", contracts, err)
|
t.Fatalf("error compiling test.v.py. result %v: %v", contracts, err)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue