-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
refactor(staking): remove account address bech32 global #15598
Conversation
delegatorAddress := sdk.MustAccAddressFromBech32(red.DelegatorAddress) | ||
delegatorAddress, err := k.authKeeper.StringToBytes(red.DelegatorAddress) | ||
if err != nil { | ||
panic(err) |
Check warning
Code scanning / CodeQL
Panic in BeginBock or EndBlock consensus methods
delegatorAddress := sdk.MustAccAddressFromBech32(redelegation.DelegatorAddress) | ||
delegatorAddress, err := k.authKeeper.StringToBytes(redelegation.DelegatorAddress) | ||
if err != nil { | ||
panic(err) |
Check warning
Code scanning / CodeQL
Panic in BeginBock or EndBlock consensus methods
delegatorAddress := sdk.MustAccAddressFromBech32(dvvTriplet.DelegatorAddress) | ||
delegatorAddress, err := k.authKeeper.StringToBytes(dvvTriplet.DelegatorAddress) | ||
if err != nil { | ||
panic(err) |
Check warning
Code scanning / CodeQL
Panic in BeginBock or EndBlock consensus methods
delegatorAddress := sdk.MustAccAddressFromBech32(delegation.DelegatorAddress) | ||
delegatorAddress, err := k.authKeeper.StringToBytes(delegation.DelegatorAddress) | ||
if err != nil { | ||
panic(err) |
Check warning
Code scanning / CodeQL
Panic in BeginBock or EndBlock consensus methods
delegatorAddress := sdk.MustAccAddressFromBech32(delegation.DelegatorAddress) | ||
delegatorAddress, err := k.authKeeper.StringToBytes(delegation.DelegatorAddress) | ||
if err != nil { | ||
panic(err) |
Check warning
Code scanning / CodeQL
Panic in BeginBock or EndBlock consensus methods
delAddr := sdk.MustAccAddressFromBech32(ubd.DelegatorAddress) | ||
delAddr, err := k.authKeeper.StringToBytes(ubd.DelegatorAddress) | ||
if err != nil { | ||
panic(err) |
Check warning
Code scanning / CodeQL
Panic in BeginBock or EndBlock consensus methods
delegatorAddress := sdk.MustAccAddressFromBech32(ubd.DelegatorAddress) | ||
delegatorAddress, err := k.authKeeper.StringToBytes(ubd.DelegatorAddress) | ||
if err != nil { | ||
panic(err) |
Check warning
Code scanning / CodeQL
Panic in BeginBock or EndBlock consensus methods
delegatorAddress := sdk.MustAccAddressFromBech32(red.DelegatorAddress) | ||
delegatorAddress, err := k.authKeeper.StringToBytes(red.DelegatorAddress) | ||
if err != nil { | ||
panic(err) |
Check warning
Code scanning / CodeQL
Panic in BeginBock or EndBlock consensus methods
delegatorAddress := sdk.MustAccAddressFromBech32(dvPair.DelegatorAddress) | ||
delegatorAddress, err := k.authKeeper.StringToBytes(dvPair.DelegatorAddress) | ||
if err != nil { | ||
panic(err) |
Check warning
Code scanning / CodeQL
Panic in BeginBock or EndBlock consensus methods
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.
is it r4r? nothing to change in CLI this time?
cosmos-sdk/x/staking/client/cli/query.go
Line 246 in 368efb0
bech32PrefixAccAddr := sdk.GetConfig().GetBech32AccountAddrPrefix() |
9842bc0
to
f2eb8b0
Compare
added for cli, not sure how to grab the prefix for the example. |
Does it make sense to add a method that returns the prefix? Although I don't know if it's worth it just for the examples |
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.
utACK
They are still accessible with |
Is there a plan to remove it for validators addresses as well? |
yes want to do 1 by 1 to better track the changes |
Co-authored-by: Facundo Medica <14063057+facundomedica@users.noreply.github.com>
Description
ref #13140
remove account bech32 global from staking
Author Checklist
All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.
I have...
!
to the type prefix if API or client breaking changeCHANGELOG.md
Reviewers Checklist
All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.
I have...
!
in the type prefix if API or client breaking change