Browse Source

Amend shouldSupportInterfaces refactor (#5359)

Ernesto García 10 months ago
parent
commit
ff3134197f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      test/utils/introspection/SupportsInterface.behavior.js

+ 1 - 1
test/utils/introspection/SupportsInterface.behavior.js

@@ -95,8 +95,8 @@ const INTERFACE_IDS = mapValues(SIGNATURES, interfaceId);
 function shouldSupportInterfaces(interfaces = [], signatures = SIGNATURES) {
   // case where only signatures are provided
   if (!Array.isArray(interfaces)) {
-    interfaces = Object.keys(interfaces);
     signatures = interfaces;
+    interfaces = Object.keys(interfaces);
   }
 
   interfaces.unshift('ERC165');