Amend shouldSupportInterfaces refactor (#5359)
This commit is contained in:
@ -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');
|
||||||
|
|||||||
Reference in New Issue
Block a user