Skip to content

Commit b6de017

Browse files
committed
(fix/solve) Solve ofac.json path issue
1 parent 08caf8f commit b6de017

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

client/chain/ofac.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import (
77
"net/http"
88
"os"
99
"path/filepath"
10-
"strings"
1110
)
1211

1312
const (
@@ -41,10 +40,7 @@ func NewOfacChecker() (*OfacChecker, error) {
4140

4241
func getOfacListPath() string {
4342
currentDirectory, _ := os.Getwd()
44-
for !strings.HasSuffix(currentDirectory, "sdk-go") {
45-
currentDirectory = filepath.Dir(currentDirectory)
46-
}
47-
return filepath.Join(filepath.Join(filepath.Join(currentDirectory, "client"), "metadata"), ofacListFilename)
43+
return filepath.Join(currentDirectory, filepath.Join("../metadata", ofacListFilename))
4844
}
4945

5046
func DownloadOfacList() error {

0 commit comments

Comments
 (0)