Skip to content

Commit

Permalink
Embeded cert for go vendoring (#118)
Browse files Browse the repository at this point in the history
* master: Embeded cert for go vendoring

* master: Embeded network ini configs for go vendoring

---------

Co-authored-by: Ivan Gureev <[email protected]>
  • Loading branch information
varche1 and Ivan Gureev authored Apr 8, 2023
1 parent a3c32cf commit 8ab298f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions client/cert/embed.go
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package cert
3 changes: 2 additions & 1 deletion client/common/denom.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package common

import (
"fmt"

"gopkg.in/ini.v1"
)

Expand All @@ -14,7 +15,7 @@ type Denom struct {
}

func LoadMetadata(network Network, marketId string) Denom {
fileName := fmt.Sprintf("client/metadata/assets/%s.ini", network.Name)
fileName := getFileAbsPath(fmt.Sprintf("../metadata/assets/%s.ini", network.Name))
cfg, err := ini.Load(fileName)
if err != nil {
panic(err)
Expand Down
4 changes: 4 additions & 0 deletions client/common/embeded.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package common

import _ "github.com/InjectiveLabs/sdk-go/client/cert"
import _ "github.com/InjectiveLabs/sdk-go/client/metadata/assets"
1 change: 1 addition & 0 deletions client/metadata/assets/embed.go
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package cert

0 comments on commit 8ab298f

Please sign in to comment.