From cfe58716746b525d46edc77bfd7245a499353026 Mon Sep 17 00:00:00 2001 From: Dawid Sowa Date: Sat, 1 Jun 2024 12:10:58 +0200 Subject: [PATCH] feat: log error when sending request --- .../src/modules/wallet-request/wallet-request.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/dapp-toolkit/src/modules/wallet-request/wallet-request.ts b/packages/dapp-toolkit/src/modules/wallet-request/wallet-request.ts index 83737ff2..e7c5d504 100644 --- a/packages/dapp-toolkit/src/modules/wallet-request/wallet-request.ts +++ b/packages/dapp-toolkit/src/modules/wallet-request/wallet-request.ts @@ -386,7 +386,10 @@ export const WalletRequestModule = (input: { }), ) }), - ) + ).mapErr((error) => { + logger?.error(error) + return error; + }) } const setRequestDataState = (...items: DataRequestBuilderItem[]) => {