aboutsummaryrefslogtreecommitdiffstats
path: root/accounts/abi/bind/bind.go
diff options
context:
space:
mode:
authornkbai <nkbai@163.com>2017-09-08 05:34:45 +0800
committerFelix Lange <fjl@users.noreply.github.com>2017-09-08 05:34:45 +0800
commit5ba9225fe3b06d5512976b808bc87d92d03d54ba (patch)
treed93f34adda4701e6de961afce2e7fbb12e876ac7 /accounts/abi/bind/bind.go
parentfc87bc5f523ad78974e0a6ce1c5651b98a1e8a52 (diff)
downloaddexon-5ba9225fe3b06d5512976b808bc87d92d03d54ba.tar
dexon-5ba9225fe3b06d5512976b808bc87d92d03d54ba.tar.gz
dexon-5ba9225fe3b06d5512976b808bc87d92d03d54ba.tar.bz2
dexon-5ba9225fe3b06d5512976b808bc87d92d03d54ba.tar.lz
dexon-5ba9225fe3b06d5512976b808bc87d92d03d54ba.tar.xz
dexon-5ba9225fe3b06d5512976b808bc87d92d03d54ba.tar.zst
dexon-5ba9225fe3b06d5512976b808bc87d92d03d54ba.zip
accounts/abi/bind: pass non-empty directory when calling goimports (#15070)
Diffstat (limited to 'accounts/abi/bind/bind.go')
-rw-r--r--accounts/abi/bind/bind.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/accounts/abi/bind/bind.go b/accounts/abi/bind/bind.go
index 73e95e02a..f58758088 100644
--- a/accounts/abi/bind/bind.go
+++ b/accounts/abi/bind/bind.go
@@ -122,7 +122,7 @@ func Bind(types []string, abis []string, bytecodes []string, pkg string, lang La
}
// For Go bindings pass the code through goimports to clean it up and double check
if lang == LangGo {
- code, err := imports.Process("", buffer.Bytes(), nil)
+ code, err := imports.Process(".", buffer.Bytes(), nil)
if err != nil {
return "", fmt.Errorf("%v\n%s", err, buffer)
}