Skip to content

Commit

Permalink
version protobufs
Browse files Browse the repository at this point in the history
  • Loading branch information
YaroShkvorets committed Feb 25, 2024
1 parent 9830102 commit 830c713
Show file tree
Hide file tree
Showing 6 changed files with 111 additions and 109 deletions.
4 changes: 2 additions & 2 deletions Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ tasks:
desc: "Builds types from protobuf files"
cmds:
- mkdir -p pb
- protoc --go_out=./pb --go_opt=paths=source_relative --proto_path=substreams/proto blobs.proto
- ls pb/*.pb.go | xargs -n1 -IX bash -c 'sed s/,omitempty// X > X.tmp && mv X{.tmp,}'
- protoc --go_out=./pb --go_opt=paths=source_relative --proto_path=substreams/proto pinax/ethereum/blobs/v1/blobs.proto
- ls pb/pinax/ethereum/blobs/v1/*.pb.go | xargs -n1 -IX bash -c 'sed s/,omitempty// X > X.tmp && mv X{.tmp,}'

test:format:
desc: "Checks Golang's code formatter"
Expand Down
2 changes: 1 addition & 1 deletion controllers/blobs.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package controllers

import (
"blob-service/dto"
pbbl "blob-service/pb"
pbbl "blob-service/pb/pinax/ethereum/blobs/v1"
"context"
"strconv"
"time"
Expand Down
2 changes: 1 addition & 1 deletion dto/blobs.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package dto

import (
pbbl "blob-service/pb"
pbbl "blob-service/pb/pinax/ethereum/blobs/v1"
"encoding/hex"
"encoding/json"
"strconv"
Expand Down
Loading

0 comments on commit 830c713

Please sign in to comment.