Skip to content

Commit

Permalink
fix nit
Browse files Browse the repository at this point in the history
  • Loading branch information
vgonkivs committed Jun 28, 2024
1 parent 7e5feac commit 31f3543
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nodebuilder/blob/cmd/blob.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ var getCmd = &cobra.Command{
return fmt.Errorf("error parsing a height: %w", err)
}

if !strings.Contains(args[1], "0x") {
if !strings.HasPrefix(args[1], "0x") {
return fmt.Errorf("only hex namespace is supported")
}
namespace, err := cmdnode.ParseV0Namespace(args[1])
Expand Down Expand Up @@ -117,7 +117,7 @@ var getAllCmd = &cobra.Command{
}

namespace, err := cmdnode.ParseV0Namespace(args[1])
if !strings.Contains(args[1], "0x") {
if !strings.HasPrefix(args[1], "0x") {
return fmt.Errorf("only hex namespace is supported")
}
if err != nil {
Expand Down

0 comments on commit 31f3543

Please sign in to comment.