diff --git a/.yarn/versions/59481ef4.yml b/.yarn/versions/59481ef4.yml new file mode 100644 index 00000000..81562721 --- /dev/null +++ b/.yarn/versions/59481ef4.yml @@ -0,0 +1,7 @@ +releases: + "@fluent-wallet/rpc-engine": patch + browser-extension: patch + helios-background: patch + +declined: + - helios diff --git a/packages/rpc-engine/middlewares/call-rpc.js b/packages/rpc-engine/middlewares/call-rpc.js index d607d3c5..d77592d9 100644 --- a/packages/rpc-engine/middlewares/call-rpc.js +++ b/packages/rpc-engine/middlewares/call-rpc.js @@ -64,10 +64,17 @@ export default defMiddleware( ) ) { // allow some inpage rpc methods to request the unlock ui - await req.rpcs.wallet_requestUnlockUI().catch(err => { - err.rpcData = req - throw err - }) + await req.rpcs + .wallet_requestUnlockUI( + { + errorFallThrough: true, + }, + undefined, + ) + .catch(err => { + err.rpcData = req + throw err + }) } else { // reject others const err = req.Err.Unauthorized()