From fef78fae2b795f1470b03313002e6673c08bfed0 Mon Sep 17 00:00:00 2001 From: Pavel Shibaev Date: Tue, 24 Sep 2024 16:21:01 +0200 Subject: [PATCH] (fix/solve) Fix path derivation for OFAC --- client/chain/ofac.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/client/chain/ofac.go b/client/chain/ofac.go index a7a586fc..86e79056 100644 --- a/client/chain/ofac.go +++ b/client/chain/ofac.go @@ -6,7 +6,6 @@ import ( "io" "net/http" "os" - "path/filepath" ) const ( @@ -39,8 +38,7 @@ func NewOfacChecker() (*OfacChecker, error) { } func getOfacListPath() string { - currentDirectory, _ := os.Getwd() - return filepath.Join(currentDirectory, "..", "metadata", ofacListFilename) + return getFileAbsPath(fmt.Sprintf("../metadata/%s", ofacListFilename)) } func DownloadOfacList() error {