From f903116d8d8cb518db3713e1a06efe68505bf345 Mon Sep 17 00:00:00 2001 From: WaDadidou Date: Thu, 19 Dec 2024 15:11:53 -0500 Subject: [PATCH] fix(launchpad): Fix merge issue, make const PinataUrl --- go/internal/indexerhandler/launchpad.go | 2 +- go/pkg/launchpad/ipfs.go | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/go/internal/indexerhandler/launchpad.go b/go/internal/indexerhandler/launchpad.go index 34b6b2887..b5468dd69 100644 --- a/go/internal/indexerhandler/launchpad.go +++ b/go/internal/indexerhandler/launchpad.go @@ -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 { diff --git a/go/pkg/launchpad/ipfs.go b/go/pkg/launchpad/ipfs.go index 774cf0169..a74f1226e 100644 --- a/go/pkg/launchpad/ipfs.go +++ b/go/pkg/launchpad/ipfs.go @@ -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 { @@ -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)) }