Skip to content

Commit

Permalink
Testing
Browse files Browse the repository at this point in the history
  • Loading branch information
VAIBHAVJINDAL3012 committed Oct 31, 2023
1 parent e4461b4 commit c7bbdd2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions helper/call.go
Original file line number Diff line number Diff line change
Expand Up @@ -620,20 +620,23 @@ func (c *ContractCaller) DecodeValidatorStakeUpdateEvent(contractAddress common.
event = new(stakinginfo.StakinginfoStakeUpdate)
found = false
)

fmt.Print("HERE1")
for _, vLog := range receipt.Logs {
if uint64(vLog.Index) == logIndex {
found = true

fmt.Print("HERE2")
if err := UnpackLog(&c.StakingInfoABI, event, stakeUpdateEvent, vLog); err != nil {
return nil, err
}
fmt.Print("HERE2")

break

}
}

if !found {
fmt.Print("HERE3")
return nil, errors.New("event not found")
}

Expand Down

0 comments on commit c7bbdd2

Please sign in to comment.