Amend shouldSupportInterfaces refactor (#5359)

This commit is contained in:
Ernesto García
2024-12-10 15:31:26 -06:00
committed by GitHub
parent 6dacc68c46
commit ff3134197f

View File

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