Merge pull request #1437 from cosmos/fix-duplicate-check

Fix duplicate message.customAmount checks
This commit is contained in:
Simon Warta 2023-06-19 16:03:47 +02:00 committed by GitHub
commit d97cec3742
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;