From c8c8d47b139135060ea4813b3c41b84921a9098d Mon Sep 17 00:00:00 2001 From: Edward Alvarado Date: Thu, 25 Apr 2024 13:58:56 -0400 Subject: [PATCH] Update comments/variable names --- packages/engine/paima-sm/src/index.ts | 2 +- .../paima-sdk/paima-mw-core/src/delegate-wallet/index.ts | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/engine/paima-sm/src/index.ts b/packages/engine/paima-sm/src/index.ts index 0a6ec78f7..107d415d3 100644 --- a/packages/engine/paima-sm/src/index.ts +++ b/packages/engine/paima-sm/src/index.ts @@ -414,7 +414,7 @@ async function processUserInputs( // // delegate = &wd|from?|to?|from_signature|to_signature // migrate = &wm|from?|to?|from_signature|to_signature - // cancelDelegate = &wc|to_signature + // cancelDelegate = &wc|to? const delegateWallet = new DelegateWallet(DBConn); if (inputData.inputData.startsWith(DelegateWallet.INTERNAL_COMMAND_PREFIX)) { const status = await delegateWallet.process( diff --git a/packages/paima-sdk/paima-mw-core/src/delegate-wallet/index.ts b/packages/paima-sdk/paima-mw-core/src/delegate-wallet/index.ts index 34971519d..0379a3339 100644 --- a/packages/paima-sdk/paima-mw-core/src/delegate-wallet/index.ts +++ b/packages/paima-sdk/paima-mw-core/src/delegate-wallet/index.ts @@ -1,7 +1,7 @@ /* * delegate = &wd|from?|to?|from_signature|to_signature * migrate = &wm|from?|to?|from_signature|to_signature - * cancelDelegations = &wc|to_signature + * cancelDelegations = &wc|to? */ import { builder } from '@paima/concise'; @@ -78,14 +78,14 @@ export async function walletConnectMigrate( } export async function walletConnectCancelDelegations( - to_signature: string + to: string | null ): Promise | FailedResult> { const errorFxn = buildEndpointErrorFxn('delegate-wallet-cancel'); - // walletConnect = &wc|to_signature + // walletConnect = &wc|to? const conciseBuilder = builder.initialize(); conciseBuilder.setPrefix('&wc'); - conciseBuilder.addValue({ value: to_signature }); + conciseBuilder.addValue({ value: to ?? '' }); try { const result = await postConciseData(conciseBuilder.build(), errorFxn); if (!result.success) {