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 } } })