Jelajahi Sumber

Amend shouldSupportInterfaces refactor (#5359)

Ernesto García 10 bulan lalu
induk
melakukan
ff3134197f
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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');