Skip to content

Commit

Permalink
Update comments/variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
acedward committed Apr 25, 2024
1 parent 5c152c8 commit c8c8d47
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/engine/paima-sm/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
8 changes: 4 additions & 4 deletions packages/paima-sdk/paima-mw-core/src/delegate-wallet/index.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -78,14 +78,14 @@ export async function walletConnectMigrate(
}

export async function walletConnectCancelDelegations(
to_signature: string
to: string | null
): Promise<SuccessfulResult<PostDataResponse> | 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) {
Expand Down

0 comments on commit c8c8d47

Please sign in to comment.