diff --git a/packages/stargate/src/stargateclient.ts b/packages/stargate/src/stargateclient.ts index 0f259f3c..9a1ccf12 100644 --- a/packages/stargate/src/stargateclient.ts +++ b/packages/stargate/src/stargateclient.ts @@ -289,6 +289,7 @@ export class StargateClient { const sumValues = allDelegations.reduce( (previousValue: Coin | null, currentValue: DelegationResponse): Coin => { + // Safe because field is set to non-nullable (https://github.com/cosmos/cosmos-sdk/blob/v0.45.3/proto/cosmos/staking/v1beta1/staking.proto#L295) assert(currentValue.balance); return previousValue !== null ? this.addCoins(previousValue, currentValue.balance)