Fix duplicate message.customAmount checks
Found by https://github.com/cosmos/cosmjs/pull/1333
This commit is contained in:
parent
11074fa8e5
commit
bc6167ad30
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user