Skip to content

Commit

Permalink
fix some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
trestinlsd committed Dec 30, 2024
1 parent 70cd42e commit 73d3130
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions precompiles/avs/avs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func (suite *AVSManagerPrecompileSuite) TestRegisterAVS() {
sdk.AccAddress(utiltx.GenerateAddress().Bytes()).String(),
sdk.AccAddress(utiltx.GenerateAddress().Bytes()).String(),
}
exoWhiteAddresses := []string{
exoWhiteListAddress := []string{
sdk.AccAddress(utiltx.GenerateAddress().Bytes()).String(),
sdk.AccAddress(utiltx.GenerateAddress().Bytes()).String(),
}
Expand All @@ -112,7 +112,7 @@ func (suite *AVSManagerPrecompileSuite) TestRegisterAVS() {
common.HexToAddress(slashAddress),
common.HexToAddress(rewardAddress),
avsOwnerAddress,
exoWhiteAddresses,
exoWhiteListAddress,
assetID,
avsUnbondingPeriod,
minSelfDelegation,
Expand Down
3 changes: 2 additions & 1 deletion x/avs/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ func (k Keeper) UpdateAVSInfo(ctx sdk.Context, params *types.AVSRegisterOrDeregi
// #nosec G115
AvsSlash: sdk.NewDecWithPrec(int64(params.AvsSlash), 2),
// #nosec G115
AvsReward: sdk.NewDecWithPrec(int64(params.AvsReward), 2),
AvsReward: sdk.NewDecWithPrec(int64(params.AvsReward), 2),
// whitelist addresses are already validated
WhitelistAddress: params.WhitelistAddress,
}

Expand Down
4 changes: 4 additions & 0 deletions x/operator/client/cli/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ func CmdRegisterOperator() *cobra.Command {
// required flags
_ = cmd.MarkFlagRequired(FlagMetaInfo) // name of the operator

flags.AddTxFlagsToCmd(cmd)
return cmd
}

Expand Down Expand Up @@ -221,6 +222,7 @@ func CmdOptIntoAVS() *cobra.Command {
return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg)
},
}
flags.AddTxFlagsToCmd(cmd)
return cmd
}

Expand All @@ -242,6 +244,7 @@ func CmdOptOutOfAVS() *cobra.Command {
return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg)
},
}
flags.AddTxFlagsToCmd(cmd)
return cmd
}

Expand All @@ -264,5 +267,6 @@ func CmdSetConsKey() *cobra.Command {
return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg)
},
}
flags.AddTxFlagsToCmd(cmd)
return cmd
}

0 comments on commit 73d3130

Please sign in to comment.