Skip to content

Commit 05147ed

Browse files
Apply suggestions from code review
Co-authored-by: Maarten Zuidhoorn <[email protected]>
1 parent b13cae6 commit 05147ed

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/snaps-controllers/src/multichain/MultichainRouter.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)