Skip to content

Commit

Permalink
Use AccountID.Empty() instead
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippGackstatter committed Sep 25, 2023
1 parent 80d83b8 commit 211577d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion output.go
Original file line number Diff line number Diff line change
Expand Up @@ -898,7 +898,7 @@ func OutputsSyntacticalDelegation() OutputsSyntacticalValidationFunc {
return nil
}

if bytes.Equal(delegationOutput.ValidatorAddress[:], emptyAccountID[:]) {
if delegationOutput.ValidatorAddress.AccountID().Empty() {
return ierrors.Wrapf(ErrDelegationValidatorAddressZeroed, "output %d", index)
}

Expand Down

0 comments on commit 211577d

Please sign in to comment.