Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cosmos-sdk-rs: make staking amount non-nullable
As noted on #82, the `amount` field of `MsgDelegate` is annotated as non-nullable in the upstream cosmos-sdk: https://github.com/cosmos/cosmos-sdk/blob/9fd866e3820b3510010ae172b682d71594cd8c14/proto/cosmos/staking/v1beta1/tx.proto#L89 ```proto message MsgDelegate { option (gogoproto.equal) = false; option (gogoproto.goproto_getters) = false; string delegator_address = 1 [(gogoproto.moretags) = "yaml:\"delegator_address\""]; string validator_address = 2 [(gogoproto.moretags) = "yaml:\"validator_address\""]; cosmos.base.v1beta1.Coin amount = 3 [(gogoproto.nullable) = false]; } ``` This commit changes the `amount` field of the domain type from `Option<Coin>` to `Coin` to reflect that.
- Loading branch information