Skip to content
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

Change address from bytes to bech32 strings #7242

Merged
merged 109 commits into from
Sep 25, 2020
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
Show all changes
109 commits
Select commit Hold shift + click to select a range
26e073b
init
anilcse Sep 3, 2020
75eeedb
Fix bank proto messages
anilcse Sep 3, 2020
0ec8ca7
missing conversions
anilcse Sep 4, 2020
9c8a377
remove casttype for addresses
anilcse Sep 4, 2020
3a70370
Fix tests
anilcse Sep 4, 2020
8f34a1d
Fix consaddress
anilcse Sep 4, 2020
163a0c5
more test fixes
anilcse Sep 5, 2020
5dc43f4
Fix tests
mdaleem Sep 7, 2020
318ffa2
fixed tests
atheeshp Sep 7, 2020
0a18f3c
Merge branch 'aleem/7195_bech32_addresses' of https://github.com/alee…
anilcse Sep 7, 2020
8c7996d
Merge branch 'master' of github.com:cosmos/cosmos-sdk into anil/7195_…
anilcse Sep 7, 2020
948e8cb
migrate missing proto declarations
anilcse Sep 7, 2020
29bf12c
format
anilcse Sep 7, 2020
2f9990f
Fix format
anilcse Sep 7, 2020
f0f8447
Fix alignment
anilcse Sep 7, 2020
ede4ef6
Fix more tests
anilcse Sep 7, 2020
dfe122a
Fix ibc merge issue
anilcse Sep 7, 2020
aa0349f
Fix fmt
anilcse Sep 7, 2020
444ae5a
Fix more tests
anilcse Sep 7, 2020
1d48be4
Fix missing address declarations
anilcse Sep 7, 2020
48910b5
Fix staking tests
mdaleem Sep 8, 2020
f119317
Fix more tests
mdaleem Sep 8, 2020
5636bff
Fix config
anilcse Sep 8, 2020
1201a3e
Merge branch 'master' of github.com:cosmos/cosmos-sdk into anil/7195_…
anilcse Sep 8, 2020
73e2e24
fixed tests
mdaleem Sep 9, 2020
2ac8dcb
Merge branch 'aleem/7195_bech32_addresses' of https://github.com/alee…
anilcse Sep 9, 2020
17befaf
Fix more tests
anilcse Sep 9, 2020
803ff8c
Update staking grpc tests
anilcse Sep 9, 2020
fb6d34f
Merge branch 'master' of github.com:cosmos/cosmos-sdk into anil/7195_…
anilcse Sep 9, 2020
3ab4d3f
Fix merge issue
anilcse Sep 9, 2020
f88a97c
fixed failing tests in x/distr
atheeshp Sep 10, 2020
e04acd2
fixed sim tests
atheeshp Sep 10, 2020
1710c07
fixed failing tests
atheeshp Sep 10, 2020
2164a53
Fix bugs
anilcse Sep 10, 2020
1d23b9c
Merge branch 'master' into anil/7195_bech32_addresses
anilcse Sep 10, 2020
fccf93b
Add logs
anilcse Sep 11, 2020
06ad9c7
fixed slashing issue
atheeshp Sep 11, 2020
621c349
Merge branch 'master' into anil/7195_bech32_addresses
anilcse Sep 11, 2020
20186d0
Merge branch 'master' into anil/7195_bech32_addresses
anilcse Sep 11, 2020
ba261b2
Fix staking grpc tests
anilcse Sep 11, 2020
d0eefda
Fix all bank tests :)
anilcse Sep 12, 2020
aba45ed
Fix tests in distribution
anilcse Sep 12, 2020
f3df36b
Fix more tests in distr
anilcse Sep 12, 2020
15d27d2
Fix slashing tests
anilcse Sep 12, 2020
a8f2d00
Fix statking tests
anilcse Sep 12, 2020
7ca61e0
Fix evidence tests
anilcse Sep 12, 2020
337ac5b
Merge branch 'master' of github.com:cosmos/cosmos-sdk into anil/7195_…
anilcse Sep 12, 2020
cfefc39
Fix gov tests
anilcse Sep 12, 2020
31513f9
Fix bug in create vesting account
anilcse Sep 13, 2020
55377b1
Fix test
anilcse Sep 13, 2020
cdc25e3
remove fmt
anilcse Sep 13, 2020
cb481e8
fixed gov tests
atheeshp Sep 14, 2020
dd820a3
fixed x/ibc tests
atheeshp Sep 14, 2020
cbc2802
fixed x/ibc-transfer tests
atheeshp Sep 14, 2020
c106e00
fixed staking tests
atheeshp Sep 14, 2020
d864f60
fixed staking tests
atheeshp Sep 14, 2020
2549835
fixed test
atheeshp Sep 14, 2020
b1f295f
fixed distribution issue
atheeshp Sep 14, 2020
6ccd673
Merge branch 'master' of github.com:cosmos/cosmos-sdk into anil/7195_…
atheeshp Sep 14, 2020
9dceebb
fix pagination test
atheeshp Sep 14, 2020
1238ab1
Merge branch 'master' of github.com:cosmos/cosmos-sdk into anil/7195_…
atheeshp Sep 14, 2020
7365828
fmt
atheeshp Sep 14, 2020
127e308
lint
atheeshp Sep 14, 2020
c0e57d1
Merge branch 'master' of github.com:cosmos/cosmos-sdk into anil/7195_…
atheeshp Sep 14, 2020
9933b72
fix build
atheeshp Sep 14, 2020
c69d6bc
Merge branch 'master' of github.com:cosmos/cosmos-sdk into anil/7195_…
anilcse Sep 14, 2020
1d53fff
fix format
anilcse Sep 14, 2020
da7ab9f
Merge branch 'anil/7195_bech32_addresses' of github.com:cosmos/cosmos…
anilcse Sep 14, 2020
bee5e6c
revert tally tests
atheeshp Sep 14, 2020
7cdbb8d
revert tally tests
atheeshp Sep 14, 2020
d7abfb0
lint
atheeshp Sep 14, 2020
8b3a404
Merge branch 'master' of github.com:cosmos/cosmos-sdk into anil/7195_…
anilcse Sep 14, 2020
eaaeb19
Merge branch 'master' into anil/7195_bech32_addresses
anilcse Sep 14, 2020
c5f5e9c
Fix sim test
anilcse Sep 14, 2020
d184799
Merge branch 'anil/7195_bech32_addresses' of github.com:cosmos/cosmos…
anilcse Sep 14, 2020
17c1b77
Merge branch 'anil/7195_bech32_addresses' of github.com:cosmos/cosmos…
atheeshp Sep 15, 2020
ded2cb7
revert
atheeshp Sep 15, 2020
0a27557
revert
atheeshp Sep 15, 2020
43e3a76
fixed tally issue
atheeshp Sep 15, 2020
bd0ff86
fix tests
atheeshp Sep 15, 2020
52a0038
Merge branch 'master' into anil/7195_bech32_addresses
anilcse Sep 15, 2020
5ab35dd
revert
atheeshp Sep 15, 2020
863f432
Merge branch 'master' of github.com:cosmos/cosmos-sdk into anil/7195_…
atheeshp Sep 15, 2020
2ed37a0
Merge branch 'anil/7195_bech32_addresses' of github.com:cosmos/cosmos…
atheeshp Sep 15, 2020
02cc307
Merge branch 'master' of github.com:cosmos/cosmos-sdk into anil/7195_…
anilcse Sep 16, 2020
73686be
fmt
anilcse Sep 16, 2020
439cf9d
refactor
anilcse Sep 16, 2020
0d2cfdd
remove `GetAddress()`
anilcse Sep 16, 2020
721063e
Merge branch 'master' into anil/7195_bech32_addresses
anilcse Sep 16, 2020
034db0e
Merge branch 'master' into anil/7195_bech32_addresses
anilcse Sep 16, 2020
6b00600
remove fmt
anilcse Sep 17, 2020
cd55f44
Merge branch 'master' into anil/7195_bech32_addresses
anilcse Sep 17, 2020
c093c35
Merge branch 'master' of github.com:cosmos/cosmos-sdk into atheesh/70…
anilcse Sep 18, 2020
447f8b2
revert fmt.Striger usage
anilcse Sep 18, 2020
a4f9d55
Fix tests
anilcse Sep 18, 2020
333c0d7
Merge branch 'master' into anil/7195_bech32_addresses
anilcse Sep 18, 2020
573322f
Merge branch 'master' into anil/7195_bech32_addresses
anilcse Sep 20, 2020
f6a950f
Fix rest test
anilcse Sep 20, 2020
2644a16
disable interfacer lint check
anilcse Sep 20, 2020
99f6318
make proto-format
anilcse Sep 20, 2020
ae1579e
Merge branch 'master' of github.com:cosmos/cosmos-sdk into anil/7195_…
anilcse Sep 23, 2020
9f9c013
Merge branch 'master' into anil/7195_bech32_addresses
anilcse Sep 23, 2020
f223324
add nolint rule
anilcse Sep 23, 2020
f564113
Merge branch 'master' into anil/7195_bech32_addresses
anilcse Sep 23, 2020
8c2c035
remove stray println
anilcse Sep 23, 2020
29f703d
Merge branch 'master' into anil/7195_bech32_addresses
anilcse Sep 23, 2020
1c81257
Merge branch 'master' of github.com:cosmos/cosmos-sdk into anil/7195_…
anilcse Sep 23, 2020
72c8c66
Merge branch 'master' into anil/7195_bech32_addresses
anilcse Sep 24, 2020
03fc53e
Merge branch 'master' of github.com:cosmos/cosmos-sdk into anil/7195_…
anilcse Sep 25, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions client/grpc/reflection/reflection.pb.gw.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions client/grpc/simulate/simulate.pb.gw.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions client/grpc_query_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func (s *IntegrationTestSuite) TestGRPCQuery() {
var header metadata.MD
bankRes, err := bankClient.Balance(
context.Background(),
&banktypes.QueryBalanceRequest{Address: val0.Address, Denom: denom},
&banktypes.QueryBalanceRequest{Address: val0.Address.String(), Denom: denom},
grpc.Header(&header), // Also fetch grpc header
)
s.Require().NoError(err)
Expand All @@ -68,7 +68,7 @@ func (s *IntegrationTestSuite) TestGRPCQuery() {
bankClient = banktypes.NewQueryClient(val0.ClientCtx)
bankRes, err = bankClient.Balance(
context.Background(),
&banktypes.QueryBalanceRequest{Address: val0.Address, Denom: denom},
&banktypes.QueryBalanceRequest{Address: val0.Address.String(), Denom: denom},
grpc.Header(&header),
)
blockHeight = header.Get(grpctypes.GRPCBlockHeightHeader)
Expand Down
4 changes: 3 additions & 1 deletion proto/cosmos/auth/v1beta1/auth.proto
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,13 @@ option go_package = "github.com/cosmos/cosmos-sdk/x/auth/types";
// for basic account functionality. Any custom account type should extend this
// type for additional functionality (e.g. vesting).
message BaseAccount {
option (gogoproto.equal) = false;
option (gogoproto.goproto_getters) = false;
option (gogoproto.goproto_stringer) = false;

option (cosmos_proto.implements_interface) = "AccountI";

bytes address = 1 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"];
string address = 1 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"];
bytes pub_key = 2 [(gogoproto.jsontag) = "public_key,omitempty", (gogoproto.moretags) = "yaml:\"public_key\""];
uint64 account_number = 3 [(gogoproto.moretags) = "yaml:\"account_number\""];
uint64 sequence = 4;
Expand Down
5 changes: 4 additions & 1 deletion proto/cosmos/auth/v1beta1/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,11 @@ service Query{

// QueryAccountRequest is the request type for the Query/Account RPC method.
message QueryAccountRequest{
option (gogoproto.equal) = false;
option (gogoproto.goproto_getters) = false;

// address defines the address to query for.
bytes address = 1 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"];
string address = 1;
}

// QueryAccountResponse is the response type for the Query/Account RPC method.
Expand Down
11 changes: 7 additions & 4 deletions proto/cosmos/bank/v1beta1/bank.proto
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,20 @@ message SendEnabled {

// Input models transaction input.
message Input {
option (gogoproto.equal) = true;
option (gogoproto.equal) = false;
option (gogoproto.goproto_getters) = false;

bytes address = 1 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"];
string address = 1 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"];
repeated cosmos.base.v1beta1.Coin coins = 2
[(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
}

// Output models transaction outputs.
message Output {
option (gogoproto.equal) = true;
option (gogoproto.equal) = false;
option (gogoproto.goproto_getters) = false;

bytes address = 1 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"];
string address = 1 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"];
repeated cosmos.base.v1beta1.Coin coins = 2
[(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
}
Expand All @@ -46,6 +48,7 @@ message Supply {
option (gogoproto.equal) = true;
option (gogoproto.goproto_getters) = false;
option (gogoproto.goproto_stringer) = false;

option (cosmos_proto.implements_interface) = "*github.com/cosmos/cosmos-sdk/x/bank/exported.SupplyI";

repeated cosmos.base.v1beta1.Coin total = 1
Expand Down
3 changes: 2 additions & 1 deletion proto/cosmos/bank/v1beta1/genesis.proto
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,11 @@ message GenesisState {
// Balance defines an account address and balance pair used in the bank module's
// genesis state.
message Balance {
option (gogoproto.equal) = false;
option (gogoproto.goproto_getters) = false;

// address is the address of the balance holder.
bytes address = 1 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"];
string address = 1 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"];

// coins defines the different coins this balance holds.
repeated cosmos.base.v1beta1.Coin coins = 2 [
Expand Down
10 changes: 8 additions & 2 deletions proto/cosmos/bank/v1beta1/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,11 @@ service Query {

// QueryBalanceRequest is the request type for the Query/Balance RPC method.
message QueryBalanceRequest {
option (gogoproto.equal) = false;
option (gogoproto.goproto_getters) = false;

// address is the address to query balances for.
bytes address = 1 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"];
string address = 1;

// denom is the coin denom to query balances for.
string denom = 2;
Expand All @@ -54,8 +57,11 @@ message QueryBalanceResponse {

// QueryBalanceRequest is the request type for the Query/AllBalances RPC method.
message QueryAllBalancesRequest {
option (gogoproto.equal) = false;
option (gogoproto.goproto_getters) = false;

// address is the address to query balances for.
bytes address = 1 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"];
string address = 1;

// pagination defines an optional pagination for the request.
cosmos.base.query.v1beta1.PageRequest pagination = 2;
Expand Down
9 changes: 5 additions & 4 deletions proto/cosmos/bank/v1beta1/tx.proto
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,14 @@ option go_package = "github.com/cosmos/cosmos-sdk/x/bank/types";

// MsgSend represents a message to send coins from one account to another.
message MsgSend {
option (gogoproto.equal) = true;
option (gogoproto.equal) = false;
option (gogoproto.goproto_getters) = false;

bytes from_address = 1 [
string from_address = 1 [
(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress",
(gogoproto.moretags) = "yaml:\"from_address\""
];
bytes to_address = 2 [
string to_address = 2 [
(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress",
(gogoproto.moretags) = "yaml:\"to_address\""
];
Expand All @@ -25,7 +26,7 @@ message MsgSend {

// MsgMultiSend represents an arbitrary multi-in, multi-out send message.
message MsgMultiSend {
option (gogoproto.equal) = true;
option (gogoproto.equal) = false;

repeated Input inputs = 1 [(gogoproto.nullable) = false];
repeated Output outputs = 2 [(gogoproto.nullable) = false];
Expand Down
5 changes: 3 additions & 2 deletions proto/cosmos/crisis/v1beta1/tx.proto
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ import "gogoproto/gogo.proto";

// MsgVerifyInvariant represents a message to verify a particular invariance.
message MsgVerifyInvariant {
option (gogoproto.equal) = true;
option (gogoproto.equal) = false;
option (gogoproto.goproto_getters) = false;

bytes sender = 1 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"];
string sender = 1 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"];
amaury1093 marked this conversation as resolved.
Show resolved Hide resolved
string invariant_module_name = 2 [(gogoproto.moretags) = "yaml:\"invariant_module_name\""];
string invariant_route = 3 [(gogoproto.moretags) = "yaml:\"invariant_route\""];
}
6 changes: 4 additions & 2 deletions proto/cosmos/distribution/v1beta1/distribution.proto
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,13 @@ message FeePool {
// together with how many coins are proposed to be spent, and to which
// recipient account.
message CommunityPoolSpendProposal {
option (gogoproto.goproto_stringer) = false;
option (gogoproto.equal) = false;
option (gogoproto.goproto_getters) = false;
option (gogoproto.goproto_stringer) = false;

string title = 1;
string description = 2;
bytes recipient = 3 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"];
string recipient = 3 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"];
repeated cosmos.base.v1beta1.Coin amount = 4 [
(gogoproto.nullable) = false,
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"
Expand Down
43 changes: 33 additions & 10 deletions proto/cosmos/distribution/v1beta1/genesis.proto
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,29 @@ import "cosmos/distribution/v1beta1/distribution.proto";
// DelegatorWithdrawInfo is the address for where distributions rewards are withdrawn to by default
// this struct is only used at genesis to feed in default withdraw addresses.
message DelegatorWithdrawInfo {
option (gogoproto.equal) = false;
option (gogoproto.goproto_getters) = false;

// delegator_address is the address of the delegator.
bytes delegator_address = 1 [
string delegator_address = 1 [
(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress",
(gogoproto.moretags) = "yaml:\"delegator_address\""
];

// withdraw_address is the address to withdraw the delegation rewards to.
bytes withdraw_address = 2 [
string withdraw_address = 2 [
(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress",
(gogoproto.moretags) = "yaml:\"withdraw_address\""
];
}

// ValidatorOutstandingRewardsRecord is used for import/export via genesis json.
message ValidatorOutstandingRewardsRecord {
option (gogoproto.equal) = false;
option (gogoproto.goproto_getters) = false;

// validator_address is the address of the validator.
bytes validator_address = 1 [
string validator_address = 1 [
(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.ValAddress",
(gogoproto.moretags) = "yaml:\"validator_address\""
];
Expand All @@ -42,8 +48,11 @@ message ValidatorOutstandingRewardsRecord {

// ValidatorAccumulatedCommissionRecord is used for import / export via genesis json.
message ValidatorAccumulatedCommissionRecord {
option (gogoproto.equal) = false;
option (gogoproto.goproto_getters) = false;

// validator_address is the address of the validator.
bytes validator_address = 1 [
string validator_address = 1 [
(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.ValAddress",
(gogoproto.moretags) = "yaml:\"validator_address\""
];
Expand All @@ -57,8 +66,11 @@ message ValidatorAccumulatedCommissionRecord {

// ValidatorHistoricalRewardsRecord is used for import / export via genesis json.
message ValidatorHistoricalRewardsRecord {
option (gogoproto.equal) = false;
option (gogoproto.goproto_getters) = false;

// validator_address is the address of the validator.
bytes validator_address = 1 [
string validator_address = 1 [
(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.ValAddress",
(gogoproto.moretags) = "yaml:\"validator_address\""
];
Expand All @@ -75,6 +87,9 @@ message ValidatorHistoricalRewardsRecord {

// ValidatorCurrentRewardsRecord is used for import / export via genesis json.
message ValidatorCurrentRewardsRecord {
option (gogoproto.equal) = false;
option (gogoproto.goproto_getters) = false;

// validator_address is the address of the validator.
bytes validator_address = 1 [
(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.ValAddress",
Expand All @@ -90,14 +105,17 @@ message ValidatorCurrentRewardsRecord {

// DelegatorStartingInfoRecord used for import / export via genesis json.
message DelegatorStartingInfoRecord {
option (gogoproto.equal) = false;
option (gogoproto.goproto_getters) = false;

// delegator_address is the address of the delegator.
bytes delegator_address = 1 [
string delegator_address = 1 [
(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress",
(gogoproto.moretags) = "yaml:\"delegator_address\""
];

// validator_address is the address of the validator.
bytes validator_address = 2 [
string validator_address = 2 [
(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.ValAddress",
(gogoproto.moretags) = "yaml:\"validator_address\""
];
Expand All @@ -111,8 +129,11 @@ message DelegatorStartingInfoRecord {

// ValidatorSlashEventRecord is used for import / export via genesis json.
message ValidatorSlashEventRecord {
option (gogoproto.equal) = false;
option (gogoproto.goproto_getters) = false;

// validator_address is the address of the validator.
bytes validator_address = 1 [
string validator_address = 1 [
(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.ValAddress",
(gogoproto.moretags) = "yaml:\"validator_address\""
];
Expand All @@ -129,6 +150,9 @@ message ValidatorSlashEventRecord {

// GenesisState defines the distribution module's genesis state.
message GenesisState {
option (gogoproto.equal) = false;
option (gogoproto.goproto_getters) = false;

// params defines all the paramaters of the module.
Params params = 1 [
(gogoproto.nullable) = false,
Expand All @@ -148,8 +172,7 @@ message GenesisState {
];

// fee_pool defines the previous proposer at genesis.
bytes previous_proposer = 4 [
(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.ConsAddress",
string previous_proposer = 4 [
(gogoproto.moretags) = "yaml:\"previous_proposer\""
];

Expand Down
Loading