Skip to content

Commit

Permalink
Correct Go interaction with PositionDivested
Browse files Browse the repository at this point in the history
  • Loading branch information
af-afk committed Nov 25, 2024
1 parent 3a73352 commit 6b343fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/ingestor.logs.ethereum/func.go
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ func handleLogCallback(seawaterAddr, thirdwebAddr, leoAddr ethCommon.Address, l
isSeawater = false
isLeo = true

case leo.TopicPositionDivested:
case leo.TopicPositionDivested2:
a, err = leo.UnpackPositionDivested2(topic1, topic2, topic3, data)
logEvent("PositionDivested2")
table = "events_leo_positiondivested2"
Expand Down
2 changes: 1 addition & 1 deletion lib/events/leo/leo.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func UnpackPositionVested2(topic1, topic2, topic3 ethCommon.Hash, d []byte) (*Po
}, nil
}

func UnpackPositionDivested2(topic1, topic2, topic3 ethCommon.Hash, d []byte) (*PositionDivested, error) {
func UnpackPositionDivested2(topic1, topic2, topic3 ethCommon.Hash, d []byte) (*PositionDivested2, error) {
return &PositionDivested2{
PositionId: hashToNumber(topic1),
Recipient: hashToAddr(topic2),
Expand Down

0 comments on commit 6b343fc

Please sign in to comment.