Skip to content

Commit

Permalink
Merge pull request #211 from iotubeproject/fix_bonus_logic
Browse files Browse the repository at this point in the history
fix bonus logic
  • Loading branch information
CoderZhi authored Nov 30, 2023
2 parents fb99ff8 + 987fde1 commit 061fa1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion witness-service/relayer/transfervalidatoroniotex.go
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ func (tv *transferValidatorOnIoTeX) sendBonus(recipient common.Address) error {
if err != nil {
return err
}
if accountResponse.AccountMeta.IsContract || accountResponse.AccountMeta.PendingNonce <= 1 {
if accountResponse.AccountMeta.IsContract || accountResponse.AccountMeta.PendingNonce >= 1 {
return nil
}
switch balance, ok := big.NewInt(0).SetString(accountResponse.AccountMeta.Balance, 10); {
Expand Down

0 comments on commit 061fa1a

Please sign in to comment.