瀏覽代碼

Amend shouldSupportInterfaces refactor (#5359)

Ernesto García 10 月之前
父節點
當前提交
ff3134197f
共有 1 個文件被更改,包括 1 次插入1 次删除
  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');