Skip to content

Commit

Permalink
fix[tidb]:handle content length zero
Browse files Browse the repository at this point in the history
  • Loading branch information
fishTsai20 committed Jan 24, 2024
1 parent e90b232 commit e80a88b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions handlers/indexer.go
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,9 @@ func indexLog(log *model.EvmLog) error {

func handleProtocols(inscription *model.Inscription) error {
content := strings.TrimSpace(inscription.Content)
if len(content) == 0 {
return nil
}
if content[0] == '{' {
var protoData map[string]string
err := json.Unmarshal([]byte(content), &protoData)
Expand Down

0 comments on commit e80a88b

Please sign in to comment.