Skip to content

Commit

Permalink
chore: object destructuring for conciseness
Browse files Browse the repository at this point in the history
  • Loading branch information
gentlementlegen committed Jul 8, 2024
1 parent 13d33b1 commit 27c7ab1
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/handlers/query-wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,8 @@ function extractEnsName(text: string) {
}

export async function registerWallet(context: Context, body: string) {
const payload = context.payload;
const config = context.config;
const logger = context.logger;
const { payload, config, logger, adapters } = context;
const sender = payload.sender.login;
const adapters = context.adapters;

const regexForAddress = /(0x[a-fA-F0-9]{40})/g;
const addressMatches = body.match(regexForAddress);
let address = addressMatches ? addressMatches[0] : null;
Expand Down

0 comments on commit 27c7ab1

Please sign in to comment.