Skip to content

Commit

Permalink
(fix/solve) Solve ofac.json path issue
Browse files Browse the repository at this point in the history
  • Loading branch information
shibaeff committed Sep 23, 2024
1 parent 2c8f9a0 commit 7306a22
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions client/chain/ofac.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (
"net/http"
"os"
"path/filepath"
"strings"
)

const (
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 7306a22

Please sign in to comment.