add missing provider function

pull/5298/head
yann300 1 month ago committed by Aniket
parent ceb9b2893d
commit a2df681825
  1. 5
      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
}
}
})

Loading…
Cancel
Save