File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ const ESCAPE_SECURITY_PERIOD = 7*24*60*60 # set to e.g. 7 days in prod
40
40
const ESCAPE_TYPE_GUARDIAN = 0
41
41
const ESCAPE_TYPE_SIGNER = 1
42
42
43
- const ERC156_ACCOUNT_INTERFACE = 0xbd73c577
43
+ const ERC156_ACCOUNT_INTERFACE = 0xf10dbd44
44
44
45
45
const TRUE = 1
46
46
const FALSE = 0
Original file line number Diff line number Diff line change 24
24
25
25
VERSION = str_to_felt ('0.2.0' )
26
26
27
+ IACCOUNT_ID = 0xf10dbd44
28
+
27
29
ESCAPE_TYPE_GUARDIAN = 0
28
30
ESCAPE_TYPE_SIGNER = 1
29
31
@@ -62,7 +64,8 @@ async def test_initializer(account_factory):
62
64
assert (await account .get_signer ().call ()).result .signer == (signer .public_key )
63
65
assert (await account .get_guardian ().call ()).result .guardian == (guardian .public_key )
64
66
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
66
69
await assert_revert (
67
70
account .initialize (signer .public_key , guardian .public_key ).invoke ()
68
71
)
You can’t perform that action at this time.
0 commit comments