diff --git a/precompiles/staking/const.go b/precompiles/staking/const.go index f18b072bbe..8500e723f4 100644 --- a/precompiles/staking/const.go +++ b/precompiles/staking/const.go @@ -2,7 +2,7 @@ package staking const ( DistributeMethodName = "distribute" - DisitributeEventName = "Distributed" + DistributeEventName = "Distributed" DistributeMethodGas = 10000 GetAllValidatorsMethodName = "getAllValidators" diff --git a/precompiles/staking/logs.go b/precompiles/staking/logs.go index 9154b9a23d..c8d1db24e2 100644 --- a/precompiles/staking/logs.go +++ b/precompiles/staking/logs.go @@ -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,