@@ -36,9 +36,9 @@ def common(firmware: Firmware,
3636 delegate : bytes ,
3737 nonce : int ,
3838 chain_id : int ,
39- v : bytes = None ,
40- r : bytes = None ,
41- s : bytes = None ):
39+ v : int = None ,
40+ r : int = None ,
41+ s : int = None ):
4242
4343 app_client = EthAppClient (backend )
4444
@@ -96,9 +96,9 @@ def test_eip7702_in_whitelist(firmware: Firmware,
9696 TEST_ADDRESS_1 ,
9797 NONCE ,
9898 CHAIN_ID_1 ,
99- bytes . fromhex ( "00" ) ,
100- bytes . fromhex ( "f82e 50a7 55fa 989f 4bb9 b36b 15af b442 4ce9 cda6 9752 fd17 a7eb 1473 7d96 3e62" ) ,
101- bytes . fromhex ( "07c9 c91d 6140 b45e a52f 29de 7a5e ffb9 dd34 0607 a26e 225c 4027 8e91 c405 4492" ) )
99+ 0x00 ,
100+ 0xf82e50a755fa989f4bb9b36b15afb4424ce9cda69752fd17a7eb14737d963e62 ,
101+ 0x07c9c91d6140b45ea52f29de7a5effb9dd340607a26e225c40278e91c4054492 )
102102
103103
104104def test_eip7702_in_whitelist_all_chain_whitelisted (firmware : Firmware ,
@@ -115,9 +115,9 @@ def test_eip7702_in_whitelist_all_chain_whitelisted(firmware: Firmware,
115115 TEST_ADDRESS_0 ,
116116 NONCE ,
117117 CHAIN_ID_2 ,
118- bytes . fromhex ( "00" ) ,
119- bytes . fromhex ( "0378 f7ac 482e c728 b65d 19d0 3943 bbb3 fe73 07c7 2c64 6e7d 2d0c 11be e81e b2b9" ) ,
120- bytes . fromhex ( "3322 66ec 3ef9 96bf 835c 50a8 3300 6b4c 8039 8d59 7d0e 6846 19db 4d51 a384 a38d" ) )
118+ 0x00 ,
119+ 0x0378f7ac482ec728b65d19d03943bbb3fe7307c72c646e7d2d0c11bee81eb2b9 ,
120+ 0x332266ec3ef996bf835c50a833006b4c80398d597d0e684619db4d51a384a38d )
121121
122122
123123def test_eip7702_in_whitelist_all_chain_param (firmware : Firmware ,
@@ -134,9 +134,9 @@ def test_eip7702_in_whitelist_all_chain_param(firmware: Firmware,
134134 TEST_ADDRESS_2 ,
135135 NONCE ,
136136 CHAIN_ID_0 ,
137- bytes . fromhex ( "01" ) ,
138- bytes . fromhex ( "a24f 35ca fc6b 408c e325 39d4 bd89 a67e dd4d 6303 fc67 6dfd df93 b984 05b7 ee5e" ) ,
139- bytes . fromhex ( "1594 56ba be65 6692 959c a3d8 29ca 269e 8f82 387c 91e4 0a33 633d 190d da7a 3c5c" ) )
137+ 0x01 ,
138+ 0xa24f35cafc6b408ce32539d4bd89a67edd4d6303fc676dfddf93b98405b7ee5e ,
139+ 0x159456babe656692959ca3d829ca269e8f82387c91e40a33633d190dda7a3c5c )
140140
141141
142142def test_eip7702_in_whitelist_max (firmware : Firmware ,
@@ -153,9 +153,9 @@ def test_eip7702_in_whitelist_max(firmware: Firmware,
153153 TEST_ADDRESS_MAX ,
154154 NONCE_MAX ,
155155 CHAIN_ID_MAX ,
156- bytes . fromhex ( "00" ) ,
157- bytes . fromhex ( "a07c 6808 9449 8c21 e80f ebb0 11ae 5d62 ede6 645d 77d7 c902 db06 5d5a 082d d220" ) ,
158- bytes . fromhex ( "6b5c 6222 5cf6 5a62 40c2 583d acc1 641c 8d69 2ed3 bd00 473c c3e2 8fe1 a4f5 2294" ) )
156+ 0x00 ,
157+ 0xa07c680894498c21e80febb011ae5d62ede6645d77d7c902db065d5a082dd220 ,
158+ 0x6b5c62225cf65a6240c2583dacc1641c8d692ed3bd00473cc3e28fe1a4f52294 )
159159
160160
161161def test_eip7702_in_whitelist_wrong_chain (firmware : Firmware ,
0 commit comments