From 04a4660eef57e9161210b2280785ba24a54edaab Mon Sep 17 00:00:00 2001 From: Leon Date: Wed, 18 Dec 2024 20:30:13 +0800 Subject: [PATCH] fix: scdo send transaction type (#6371) --- packages/kit-bg/src/providers/ProviderApiScdo.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/kit-bg/src/providers/ProviderApiScdo.ts b/packages/kit-bg/src/providers/ProviderApiScdo.ts index 8f572643697..f9f0b9cca41 100644 --- a/packages/kit-bg/src/providers/ProviderApiScdo.ts +++ b/packages/kit-bg/src/providers/ProviderApiScdo.ts @@ -181,8 +181,9 @@ class ProviderApiScdo extends ProviderApiBase { } @providerApiMethod() - public scdo_sendTransaction(request: IJsBridgeMessagePayload) { - return this._signAndSendTransaction(request, true); + public async scdo_sendTransaction(request: IJsBridgeMessagePayload) { + const tx = await this._signAndSendTransaction(request, true); + return tx.Hash; } @providerApiMethod()