Skip to content

Commit

Permalink
refactor!: add LSP20 in calculation of LSP0 interface ID
Browse files Browse the repository at this point in the history
  • Loading branch information
CJ42 committed Aug 8, 2023
1 parent 9db488a commit a3d6f04
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const INTERFACE_IDS = {
ERC1155: '0xd9b67a26',
ERC725X: '0x7545acac',
ERC725Y: '0x629aa694',
LSP0ERC725Account: '0x3e89ad98',
LSP0ERC725Account: '0x24871b3d',
LSP1UniversalReceiver: '0x6bb56a14',
LSP6KeyManager: '0x38bb3cdb',
LSP7DigitalAsset: '0xda1f85e4',
Expand Down
2 changes: 1 addition & 1 deletion contracts/LSP0ERC725Account/LSP0Constants.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion contracts/Mocks/ERC165Interfaces.sol
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ contract CalculateLSPInterfaces {
type(IERC1271).interfaceId ^
type(ILSP1).interfaceId ^
calculateInterfaceLSP14() ^
calculateInterfaceLSP17Extendable();
calculateInterfaceLSP17Extendable() ^
calculateInterfaceLSP20CallVerification();

require(
interfaceId == _INTERFACEID_LSP0,
Expand Down

0 comments on commit a3d6f04

Please sign in to comment.