From a2df681825414ce0f25c0110354635feae7f2f37 Mon Sep 17 00:00:00 2001 From: yann300 Date: Tue, 8 Oct 2024 12:16:30 +0200 Subject: [PATCH] add missing provider function --- apps/remix-ide/src/app/udapp/run-tab.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/remix-ide/src/app/udapp/run-tab.js b/apps/remix-ide/src/app/udapp/run-tab.js index 4b924ea6cd..4e768c869d 100644 --- a/apps/remix-ide/src/app/udapp/run-tab.js +++ b/apps/remix-ide/src/app/udapp/run-tab.js @@ -181,6 +181,11 @@ export class RunTab extends ViewPlugin { provider: { sendAsync (payload) { return udapp.call(name, 'sendAsync', payload) + }, + async request (payload) { + const requestResult = await udapp.call(name, 'sendAsync', payload) + if (requestResult.error) throw new Error(requestResult.error.message) + return requestResult.result } } })