mirror of
https://github.com/pezkuwichain/pwap.git
synced 2026-06-13 15:51:02 +00:00
fix: add eslint-disable for debug log
This commit is contained in:
@@ -58,9 +58,10 @@ export async function getInbox(
|
|||||||
if (result.isEmpty || result.length === 0) return [];
|
if (result.isEmpty || result.length === 0) return [];
|
||||||
|
|
||||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||||
return result.map((msg: Record<string, any>) => {
|
return result.map((msg: any) => {
|
||||||
console.log('[PEZMessage] msg keys:', Object.keys(msg.toJSON?.() ?? msg));
|
console.log('[PEZMessage] msg keys:', Object.keys(msg.toJSON?.() ?? msg));
|
||||||
return msg;
|
return msg;
|
||||||
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||||
}).map((msg: Record<string, any>) => ({
|
}).map((msg: Record<string, any>) => ({
|
||||||
sender: msg.sender.toString(),
|
sender: msg.sender.toString(),
|
||||||
blockNumber: msg.blockNumber?.toNumber?.() ?? msg.block_number?.toNumber?.() ?? 0,
|
blockNumber: msg.blockNumber?.toNumber?.() ?? msg.block_number?.toNumber?.() ?? 0,
|
||||||
|
|||||||
Reference in New Issue
Block a user