From 434dc6f5be95c7a71f0295a2aa058fffad34b511 Mon Sep 17 00:00:00 2001 From: Julian Toledano Date: Tue, 19 Mar 2024 10:43:08 +0100 Subject: [PATCH] del: ValAddressFromBech32 --- x/authz/msgs_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/authz/msgs_test.go b/x/authz/msgs_test.go index bd0a230be281..194f93d417f3 100644 --- a/x/authz/msgs_test.go +++ b/x/authz/msgs_test.go @@ -72,7 +72,7 @@ func TestAminoJSON(t *testing.T) { sendAuthz := banktypes.NewSendAuthorization(sdk.NewCoins(sdk.NewCoin("stake", sdkmath.NewInt(1000))), nil) sendGrant, err := authz.NewGrant(blockTime, sendAuthz, &expiresAt) require.NoError(t, err) - valAddr, err := sdk.ValAddressFromBech32("cosmosvaloper1xcy3els9ua75kdm783c3qu0rfa2eples6eavqq") + valAddr, err := valAddressCodec.StringToBytes("cosmosvaloper1xcy3els9ua75kdm783c3qu0rfa2eples6eavqq") require.NoError(t, err) stakingAuth, err := stakingtypes.NewStakeAuthorization([]sdk.ValAddress{valAddr}, nil, stakingtypes.AuthorizationType_AUTHORIZATION_TYPE_DELEGATE, &sdk.Coin{Denom: "stake", Amount: sdkmath.NewInt(1000)}, valAddressCodec) require.NoError(t, err)