Skip to content

Commit

Permalink
chore err handling & delete local dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
sh-cha committed Aug 6, 2024
1 parent efcc1f5 commit 1f5ca99
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
5 changes: 4 additions & 1 deletion executor/celestia/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package celestia

import (
"context"
"fmt"

"github.com/cosmos/cosmos-sdk/client/tx"
sdk "github.com/cosmos/cosmos-sdk/types"
Expand All @@ -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)
Expand Down
5 changes: 0 additions & 5 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
4 changes: 4 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand Down

0 comments on commit 1f5ca99

Please sign in to comment.