Fix duplicate message.customAmount checks

Found by https://github.com/cosmos/cosmjs/pull/1333
This commit is contained in:
Simon Warta 2023-06-19 15:44:41 +02:00
parent 11074fa8e5
commit bc6167ad30
2 changed files with 2 additions and 2 deletions

View File

@ -992,7 +992,7 @@ describe("SigningCosmWasmClient", () => {
): protobuf.Writer {
writer.uint32(10).string(message.customDelegatorAddress ?? "");
writer.uint32(18).string(message.customValidatorAddress ?? "");
if (message.customAmount !== undefined && message.customAmount !== undefined) {
if (message.customAmount !== undefined) {
Coin.encode(message.customAmount, writer.uint32(26).fork()).ldelim();
}
return writer;

View File

@ -564,7 +564,7 @@ describe("SigningStargateClient", () => {
): protobuf.Writer {
writer.uint32(10).string(message.customDelegatorAddress ?? "");
writer.uint32(18).string(message.customValidatorAddress ?? "");
if (message.customAmount !== undefined && message.customAmount !== undefined) {
if (message.customAmount !== undefined) {
Coin.encode(message.customAmount, writer.uint32(26).fork()).ldelim();
}
return writer;