From 1f5ca996717a39d509476520a5a7a53fd479e010 Mon Sep 17 00:00:00 2001 From: sh-cha Date: Tue, 6 Aug 2024 12:24:30 +0900 Subject: [PATCH] chore err handling & delete local dependencies --- executor/celestia/node.go | 5 ++++- go.mod | 5 ----- go.sum | 4 ++++ 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/executor/celestia/node.go b/executor/celestia/node.go index d9b43a9..f1d0126 100644 --- a/executor/celestia/node.go +++ b/executor/celestia/node.go @@ -2,6 +2,7 @@ package celestia import ( "context" + "fmt" "github.com/cosmos/cosmos-sdk/client/tx" sdk "github.com/cosmos/cosmos-sdk/types" @@ -24,7 +25,9 @@ func BuildTxWithMessages( for _, msg := range msgs { withBlobMsg, ok := msg.(*celestiatypes.MsgPayForBlobsWithBlob) if !ok { - return nil, "", err + // not support other message types for now + // only MsgPayForBlobsWithBlob in one tx + return nil, "", fmt.Errorf("unsupported message type: %s", sdk.MsgTypeURL(msg)) } pfbMsgs = append(pfbMsgs, withBlobMsg.MsgPayForBlobs) blobMsgs = append(blobMsgs, withBlobMsg.Blob) diff --git a/go.mod b/go.mod index c17b5b4..78c854e 100644 --- a/go.mod +++ b/go.mod @@ -225,8 +225,3 @@ require ( ) replace github.com/gogo/protobuf => github.com/regen-network/protobuf v1.3.3-alpha.regen.1 - -replace ( - github.com/initia-labs/OPinit => ../opinit - github.com/initia-labs/OPinit/api => ../opinit/api -) diff --git a/go.sum b/go.sum index 9708a0e..402c5e9 100644 --- a/go.sum +++ b/go.sum @@ -728,6 +728,10 @@ github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANyt github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8= github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= github.com/influxdata/influxdb1-client v0.0.0-20191209144304-8bf82d3c094d/go.mod h1:qj24IKcXYK6Iy9ceXlo3Tc+vtHo9lIhSX5JddghvEPo= +github.com/initia-labs/OPinit v0.4.1 h1:g6IVEAOe2X31pgjk/q0zg4R1GfNj2QP3q5s3HMcWm8w= +github.com/initia-labs/OPinit v0.4.1/go.mod h1:n0eqwOnVGE1vuTnW+3jzyEXfE4ndTM0vCRGmPu9VvUc= +github.com/initia-labs/OPinit/api v0.4.1 h1:Q8etW92LiwekKZxzDYVFdiHF3uOpEA4nyajy8zpcxB0= +github.com/initia-labs/OPinit/api v0.4.1/go.mod h1:Xy/Nt3ubXLQ4zKn0m7RuQOM1sj8TVdlNNyek21TGYR0= github.com/initia-labs/initia v0.4.1 h1:P9olCgk4BPZ+dH5wCWKajzHZzjg8zPNrXx+J1Mpexa8= github.com/initia-labs/initia v0.4.1/go.mod h1:cmzwPsLJAP4farjNC62Vkc7wGieRCKvBBUu5trNJyNQ= github.com/initia-labs/movevm v0.3.4 h1:kzqs6uzTq0f5peZJNzLq/1qgnmAFfC+I9eCyPBducxM=