Skip to content

Commit

Permalink
Merge pull request #245 from InjectiveLabs/fix/sync_dev_after_v1_52_1
Browse files Browse the repository at this point in the history
Fix/sync dev after v1.52.1
  • Loading branch information
aarmoa authored Sep 25, 2024
2 parents feafa40 + 17ab0d8 commit 6e47286
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions client/chain/ofac.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ import (
"io"
"net/http"
"os"
"path/filepath"
"strings"
"path"
)

const (
Expand Down Expand Up @@ -40,11 +39,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 getFileAbsPath(path.Join("..", "metadata", ofacListFilename))
}

func DownloadOfacList() error {
Expand Down

0 comments on commit 6e47286

Please sign in to comment.