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)) }