File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
packages/snaps-controllers/src/multichain Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -216,6 +216,7 @@ export class MultichainRouter {
216216 'PermissionController:getPermissions' ,
217217 snap . id ,
218218 ) ;
219+
219220 if ( permissions && hasProperty ( permissions , SnapEndowments . Protocol ) ) {
220221 const permission = permissions [ SnapEndowments . Protocol ] ;
221222 const scopes = getProtocolCaveatScopes ( permission ) ;
@@ -262,6 +263,7 @@ export class MultichainRouter {
262263 scope ,
263264 request ,
264265 ) ;
266+
265267 if ( accountSnap ) {
266268 return this . #withSnapKeyring( async ( keyring ) =>
267269 keyring . submitRequest ( {
@@ -279,6 +281,7 @@ export class MultichainRouter {
279281 const protocolSnap = protocolSnaps . find ( ( snap ) =>
280282 snap . methods . includes ( method ) ,
281283 ) ;
284+
282285 if ( protocolSnap ) {
283286 return this . #messenger. call ( 'SnapController:handleRequest' , {
284287 snapId : protocolSnap . snapId ,
You can’t perform that action at this time.
0 commit comments