-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bump sdk50 #144
base: main
Are you sure you want to change the base?
bump sdk50 #144
Conversation
921f404
to
c19b60f
Compare
@vietanh2k all lint errors must be fixed |
@catShaark @sontrinh16 |
yep, both still uses Bech32Codec so still the same |
multiStakerAddr, valAcc, err := types.AccAddrAndValAddrFromStrings(msg.DelegatorAddress, msg.ValidatorAddress) | ||
func (k msgServer) CreateValidator(ctx context.Context, msg *stakingtypes.MsgCreateValidator) (*stakingtypes.MsgCreateValidatorResponse, error) { | ||
sdkCtx := sdk.UnwrapSDKContext(ctx) | ||
multiStakerAddr, valAcc, err := types.ValidatorAccAddrAndValAddrFromStrings(msg.ValidatorAddress) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is false, validator address is not multi staker address, validator and delegator have different address' prefix and we don't need to create new function to generate validator address.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've re-read sdk50, it still work, but I think we should add address codec and validator codec for transparent this logic
return valUpdates, nil | ||
} | ||
|
||
func (am AppModule) StakingAppModule() staking.AppModule { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need this function?
No description provided.