Skip to content

Commit

Permalink
chore: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ByteZhang1024 committed Oct 8, 2024
1 parent 4c4326d commit 7c8e3f3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
13 changes: 6 additions & 7 deletions packages/core/src/api/allnetwork/AllNetworkGetAddress.ts
Original file line number Diff line number Diff line change
Expand Up @@ -371,16 +371,15 @@ export default class AllNetworkGetAddress extends BaseMethod<
// call method
const response = await this.callMethod(methodName, params, param);

const dependOnPayloads = dependOnMethodResults.reduce(
(acc, cur) => Object.assign(acc, get(cur, 'payload', {})),
{}
);

const result: AllNetworkAddress = {
...response,
// @ts-expect-error
payload: {
...response.payload,
...dependOnMethodResults.reduce(
(acc, cur) => ({ ...get(cur, 'payload', {}), ...acc }),
{}
),
},
payload: { ...response.payload, ...dependOnPayloads },
};
responses.push(result);
this.postPreviousAddressMessage(result);
Expand Down
1 change: 1 addition & 0 deletions packages/core/src/types/api/allNetworkGetAddress.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ type AllNetworkAddressPayload =
address: string;
publicKey?: string;
pub?: string;
// Nostr public key (bech32)
npub?: string;
}
| {
Expand Down

0 comments on commit 7c8e3f3

Please sign in to comment.