Skip to content

Commit 36ef6b9

Browse files
committed
change the value of IAccount.interfaceID
1 parent af2942a commit 36ef6b9

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

contracts/ArgentAccount.cairo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const ESCAPE_SECURITY_PERIOD = 7*24*60*60 # set to e.g. 7 days in prod
4040
const ESCAPE_TYPE_GUARDIAN = 0
4141
const ESCAPE_TYPE_SIGNER = 1
4242
43-
const ERC156_ACCOUNT_INTERFACE = 0xbd73c577
43+
const ERC156_ACCOUNT_INTERFACE = 0xf10dbd44
4444
4545
const TRUE = 1
4646
const FALSE = 0

test/argent_account.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424

2525
VERSION = str_to_felt('0.2.0')
2626

27+
IACCOUNT_ID = 0xf10dbd44
28+
2729
ESCAPE_TYPE_GUARDIAN = 0
2830
ESCAPE_TYPE_SIGNER = 1
2931

@@ -62,7 +64,8 @@ async def test_initializer(account_factory):
6264
assert (await account.get_signer().call()).result.signer == (signer.public_key)
6365
assert (await account.get_guardian().call()).result.guardian == (guardian.public_key)
6466
assert (await account.get_version().call()).result.version == VERSION
65-
# should throw when calling initialize
67+
assert (await account.supportsInterface(IACCOUNT_ID).call()).result.success == 1
68+
# should throw when calling initialize twice
6669
await assert_revert(
6770
account.initialize(signer.public_key, guardian.public_key).invoke()
6871
)

0 commit comments

Comments
 (0)