Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
trestinlsd committed Jan 7, 2025
1 parent 029cd0c commit ab88aca
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions x/avs/keeper/avs.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,10 @@ func (k *Keeper) IsWhitelisted(ctx sdk.Context, avsAddr, operatorAddr string) (b
if err != nil {
return false, errorsmod.Wrap(err, "IsWhitelisted: error occurred when parsing account acc address from Bech32")
}
// whitelist is disabled for avs of the dogfood type
if len(avsInfo.Info.ChainId) != 0 && avsInfo.Info.AvsAddress == types.GenerateAVSAddr(avsInfo.Info.ChainId) {
return true, nil
}
// Currently avs has no whitelist set and any operator can optin
if len(avsInfo.Info.WhitelistAddress) == 0 {
return true, nil
Expand Down

0 comments on commit ab88aca

Please sign in to comment.