Skip to content

Commit

Permalink
fix event name typo
Browse files Browse the repository at this point in the history
  • Loading branch information
fbac committed Oct 24, 2024
1 parent 36e36a8 commit 884598c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion precompiles/staking/const.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package staking

const (
DistributeMethodName = "distribute"
DisitributeEventName = "Distributed"
DistributeEventName = "Distributed"
DistributeMethodGas = 10000

GetAllValidatorsMethodName = "getAllValidators"
Expand Down
2 changes: 1 addition & 1 deletion precompiles/staking/logs.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ func (c *Contract) addDistributeLog(
zrc20Token common.Address,
amount *big.Int,
) error {
event := c.Abi().Events[DisitributeEventName]
event := c.Abi().Events[DistributeEventName]

topics, err := logs.MakeTopics(
event,
Expand Down

0 comments on commit 884598c

Please sign in to comment.