Skip to content

Commit

Permalink
Added a parse function
Browse files Browse the repository at this point in the history
  • Loading branch information
esuwu committed Nov 12, 2024
1 parent 42bf0ff commit 3f9bb83
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/blockchaininfo/nats_subscriber.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ func printContractInfo(contractInfoProto *g.L2ContractDataEntries, scheme proto.
if err != nil {
return err
}
// Delete data entries are not going to have "type"
prettyJSON, err := json.MarshalIndent(contractInfo, "", " ")
if err != nil {
log.Println("Error converting to pretty JSON:", err)
Expand Down Expand Up @@ -132,6 +133,8 @@ func main() {
flag.StringVar(&updatesPath, "updates-path", "", "File path to store contract updates")
flag.StringVar(&natsURL, "nats-url", nats.DefaultURL, "URL for the NATS server")

flag.Parse()

scheme, err := schemeFromString(blockchainType)
if err != nil {
zap.S().Fatalf("Failed to parse the blockchain type: %v", err)
Expand Down

0 comments on commit 3f9bb83

Please sign in to comment.