Skip to content

Commit

Permalink
Merge pull request #15 from ququzone/main
Browse files Browse the repository at this point in the history
change firmware version to string
  • Loading branch information
huangzhiran authored Oct 14, 2024
2 parents 5d81f53 + 19e57ac commit fda7d28
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pkg/modules/event/event_firmware_updated.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"context"
"encoding/json"
"math/big"
"strconv"
"strings"

"github.com/ethereum/go-ethereum/crypto"
Expand Down Expand Up @@ -54,7 +53,7 @@ type (

FirmwareData struct {
Name string `json:"name"`
Version int `json:"version"`
Version string `json:"version"`
URL string `json:"url"`
}
)
Expand All @@ -80,7 +79,7 @@ func (e *FirmwareUpdated) Unmarshal(v any) error {

e.ProjectId = ame.ProjectId.Uint64()
e.Name = firmware.Name
e.Version = strconv.Itoa(firmware.Version)
e.Version = firmware.Version
e.Uri = firmware.URL

return nil
Expand Down

0 comments on commit fda7d28

Please sign in to comment.