From b6de017fcb9dbac4b64b645d21eaab467c46fbb2 Mon Sep 17 00:00:00 2001 From: Pavel Shibaev Date: Mon, 23 Sep 2024 22:04:24 +0200 Subject: [PATCH] (fix/solve) Solve ofac.json path issue --- client/chain/ofac.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/client/chain/ofac.go b/client/chain/ofac.go index 0a8b3eee..6a454ba0 100644 --- a/client/chain/ofac.go +++ b/client/chain/ofac.go @@ -7,7 +7,6 @@ import ( "net/http" "os" "path/filepath" - "strings" ) const ( @@ -41,10 +40,7 @@ func NewOfacChecker() (*OfacChecker, error) { func getOfacListPath() string { currentDirectory, _ := os.Getwd() - for !strings.HasSuffix(currentDirectory, "sdk-go") { - currentDirectory = filepath.Dir(currentDirectory) - } - return filepath.Join(filepath.Join(filepath.Join(currentDirectory, "client"), "metadata"), ofacListFilename) + return filepath.Join(currentDirectory, filepath.Join("../metadata", ofacListFilename)) } func DownloadOfacList() error {