소스 검색

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');