-
Notifications
You must be signed in to change notification settings - Fork 2
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
Feat/upgrade v0.50.1 sdk #4
Conversation
app/export.go
Outdated
@@ -135,12 +144,27 @@ func (app *EthermintApp) prepForZeroHeightGenesis(ctx sdk.Context, jailAllowedAd | |||
// reinitialize all validators | |||
app.StakingKeeper.IterateValidators(ctx, func(_ int64, val stakingtypes.ValidatorI) (stop bool) { | |||
// donate any unwithdrawn outstanding reward fraction tokens to the community pool | |||
scraps := app.DistrKeeper.GetValidatorOutstandingRewardsCoins(ctx, val.GetOperator()) | |||
feePool := app.DistrKeeper.GetFeePool(ctx) | |||
valBz, err := app.StakingKeeper.ValidatorAddressCodec().StringToBytes((val.GetOperator())) |
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.
any helper?
x/evm/keeper/utils.go
Outdated
return common.Address{}, errorsmod.Wrapf( | ||
stakingtypes.ErrNoValidatorFound, | ||
"failed to retrieve validator from block proposer address %s", | ||
proposerAddress.String(), | ||
) | ||
} | ||
valBz, err := k.stakingKeeper.ValidatorAddressCodec().StringToBytes((validator.GetOperator())) |
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.
helper?
x/feemarket/keeper/keeper_test.go
Outdated
require.NoError(t, err) | ||
appStakingKeeper := suite.app.StakingKeeper | ||
validator = stakingkeeper.TestingUpdateValidator(&appStakingKeeper, suite.ctx, validator, true) | ||
err = suite.app.StakingKeeper.Hooks().AfterValidatorCreated(suite.ctx, validator.GetOperator()) | ||
valBz, err := suite.app.StakingKeeper.ValidatorAddressCodec().StringToBytes((validator.GetOperator())) |
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.
helper?
…sulting in evm chain id not set on upgrade
key changes:
msg.GetSigners()
is being deprecated and each message must explicitly declare which field within its struc, will be the signer field, in their relevanttx.proto
files refactor!: deprecate sdk.Msg.GetSigners cosmos/cosmos-sdk#15284msgEthereumTx
requires theirfrom
field to be blank, a customGetSigner func is implemented for this msg, to bypass the new signer check 566bd45