Skip to content

Commit

Permalink
fix(launchpad): Fix merge issue, make const PinataUrl
Browse files Browse the repository at this point in the history
  • Loading branch information
WaDadidou committed Dec 19, 2024
1 parent 811fe46 commit f903116
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion go/internal/indexerhandler/launchpad.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ func (h *Handler) handleExecuteUpdateMerkleRoot(e *Message, execMsg *wasmtypes.M
return nil
}

func (h *Handler) DeployCollectionMsg(e *Message, execMsg *wasmtypes.MsgExecuteContract) error {
func (h *Handler) handleExecuteDeployCollection(e *Message, execMsg *wasmtypes.MsgExecuteContract) error {
var deployCollectionMsg DeployCollectionMsg

if err := json.Unmarshal(execMsg.Msg, &deployCollectionMsg); err != nil {
Expand Down
5 changes: 3 additions & 2 deletions go/pkg/launchpad/ipfs.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ import (
type Provider string

const (
Pinata Provider = "pinata"
Pinata Provider = "pinata"
PinataUrl string = "https://api.pinata.cloud/psa"
)

type PinningService struct {
Expand All @@ -29,7 +30,7 @@ func NewPinningService(provider Provider, bearerToken string) (*PinningService,

switch provider {
case Pinata:
url = "https://api.pinata.cloud/psa"
url = PinataUrl
default:
return nil, errors.New(fmt.Sprintf("unknown provider: %s", provider))
}
Expand Down

0 comments on commit f903116

Please sign in to comment.