Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouop0 committed Aug 25, 2024
1 parent 180356e commit 2af63be
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/event/DisputeGameProxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package event

import (
"encoding/json"
"github.com/spf13/cast"

"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
Expand Down Expand Up @@ -39,7 +40,7 @@ func (t *DisputeGameCreated) ToObj(data string) error {
func (*DisputeGameCreated) Data(log types.Log) (string, error) {
transfer := &DisputeGameCreated{
DisputeProxy: TopicToAddress(log, 1).Hex(),
GameType: uint32(TopicToInt64(log, 2)),
GameType: cast.ToUint32(TopicToInt64(log, 2)),
RootClaim: TopicToHash(log, 3).Hex(),
}
data, err := ToJSON(transfer)
Expand Down

0 comments on commit 2af63be

Please sign in to comment.