From a3d6f0436f96ab3e180b5c9642369794ea2e0148 Mon Sep 17 00:00:00 2001 From: CJ42 Date: Tue, 8 Aug 2023 13:53:12 +0100 Subject: [PATCH] refactor!: add LSP20 in calculation of LSP0 interface ID --- constants.ts | 2 +- contracts/LSP0ERC725Account/LSP0Constants.sol | 2 +- contracts/Mocks/ERC165Interfaces.sol | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/constants.ts b/constants.ts index 3ceb7ca49..780673af3 100644 --- a/constants.ts +++ b/constants.ts @@ -24,7 +24,7 @@ export const INTERFACE_IDS = { ERC1155: '0xd9b67a26', ERC725X: '0x7545acac', ERC725Y: '0x629aa694', - LSP0ERC725Account: '0x3e89ad98', + LSP0ERC725Account: '0x24871b3d', LSP1UniversalReceiver: '0x6bb56a14', LSP6KeyManager: '0x38bb3cdb', LSP7DigitalAsset: '0xda1f85e4', diff --git a/contracts/LSP0ERC725Account/LSP0Constants.sol b/contracts/LSP0ERC725Account/LSP0Constants.sol index 11659a86e..98948eea4 100644 --- a/contracts/LSP0ERC725Account/LSP0Constants.sol +++ b/contracts/LSP0ERC725Account/LSP0Constants.sol @@ -2,7 +2,7 @@ pragma solidity ^0.8.4; // --- ERC165 interface ids -bytes4 constant _INTERFACEID_LSP0 = 0x3e89ad98; +bytes4 constant _INTERFACEID_LSP0 = 0x24871b3d; bytes4 constant _INTERFACEID_ERC1271 = 0x1626ba7e; // ERC1271 - Standard Signature Validation diff --git a/contracts/Mocks/ERC165Interfaces.sol b/contracts/Mocks/ERC165Interfaces.sol index 3e9a07621..333c97dab 100644 --- a/contracts/Mocks/ERC165Interfaces.sol +++ b/contracts/Mocks/ERC165Interfaces.sol @@ -91,7 +91,8 @@ contract CalculateLSPInterfaces { type(IERC1271).interfaceId ^ type(ILSP1).interfaceId ^ calculateInterfaceLSP14() ^ - calculateInterfaceLSP17Extendable(); + calculateInterfaceLSP17Extendable() ^ + calculateInterfaceLSP20CallVerification(); require( interfaceId == _INTERFACEID_LSP0,