@@ -40,10 +40,12 @@ def test_gcs_nft(firmware: Firmware,
40
40
abi = json .load (file ),
41
41
address = None
42
42
)
43
- recipient_addr = bytes .fromhex ("1111111111111111111111111111111111111111" )
43
+ with app_client .get_public_addr (bip32_path = "m/44'/60'/0'/0/0" , display = False ):
44
+ pass
45
+ _ , device_addr , _ = ResponseParser .pk_addr (app_client .response ().data )
44
46
data = contract .encode_abi ("safeBatchTransferFrom" , [
45
- bytes .fromhex ("Dad77910DbDFdE764fC21FCD4E74D71bBACA6D8D " ),
46
- recipient_addr ,
47
+ bytes .fromhex ("1111111111111111111111111111111111111111 " ),
48
+ bytes . fromhex ( "d8da6bf26964af9d7eed9e03e53415d37aa96045" ) ,
47
49
[
48
50
0xff ,
49
51
0xffff ,
@@ -75,8 +77,8 @@ def test_gcs_nft(firmware: Firmware,
75
77
Field (
76
78
1 ,
77
79
"From" ,
78
- ParamType .RAW ,
79
- ParamRaw (
80
+ ParamType .TRUSTED_NAME ,
81
+ ParamTrustedName (
80
82
1 ,
81
83
Value (
82
84
1 ,
@@ -88,14 +90,27 @@ def test_gcs_nft(firmware: Firmware,
88
90
PathLeaf (PathLeafType .STATIC ),
89
91
]
90
92
),
91
- )
93
+ ),
94
+ [
95
+ TrustedNameType .ACCOUNT ,
96
+ ],
97
+ [
98
+ TrustedNameSource .UD ,
99
+ TrustedNameSource .ENS ,
100
+ TrustedNameSource .FN ,
101
+ ],
102
+ [
103
+ bytes .fromhex ("0000000000000000000000000000000000000000" ),
104
+ bytes .fromhex ("1111111111111111111111111111111111111111" ),
105
+ bytes .fromhex ("2222222222222222222222222222222222222222" ),
106
+ ],
92
107
)
93
108
),
94
109
Field (
95
110
1 ,
96
111
"To" ,
97
- ParamType .TRUSTED_NAME ,
98
- ParamTrustedName (
112
+ ParamType .RAW ,
113
+ ParamRaw (
99
114
1 ,
100
115
Value (
101
116
1 ,
@@ -107,15 +122,7 @@ def test_gcs_nft(firmware: Firmware,
107
122
PathLeaf (PathLeafType .STATIC ),
108
123
]
109
124
),
110
- ),
111
- [
112
- TrustedNameType .ACCOUNT ,
113
- ],
114
- [
115
- TrustedNameSource .UD ,
116
- TrustedNameSource .ENS ,
117
- TrustedNameSource .FN ,
118
- ],
125
+ )
119
126
)
120
127
),
121
128
Field (
@@ -205,7 +212,7 @@ def test_gcs_nft(firmware: Firmware,
205
212
206
213
app_client .provide_transaction_info (tx_info .serialize ())
207
214
challenge = ResponseParser .challenge (app_client .get_challenge ().data )
208
- app_client .provide_trusted_name_v2 (recipient_addr ,
215
+ app_client .provide_trusted_name_v2 (device_addr ,
209
216
"gerard.eth" ,
210
217
TrustedNameType .ACCOUNT ,
211
218
TrustedNameSource .ENS ,
0 commit comments