@@ -353,7 +353,11 @@ def test_hive_sign_transfer(self):
353353 self .assertEqual ((ref_num , ref_prefix , expiration ), (12345 , 67890 , 1700000000 ))
354354 self .assertEqual (r .string (), b"kktester" ) # from
355355 self .assertEqual (r .string (), b"kkrecipient" ) # to
356- self .assertEqual (r .asset (), (1000 , 3 , "HIVE" ))
356+ # The WIRE spelling, per _WIRE_SYMBOL above: hived writes "STEEM" for
357+ # HIVE, and this reads the bytes the device actually signed. Asserting
358+ # the display name here passed only while the firmware serialized a
359+ # symbol the chain does not use.
360+ self .assertEqual (r .asset (), (1000 , 3 , _WIRE_SYMBOL ["HIVE" ]))
357361 self .assertEqual (r .string (), b"kktest" ) # memo
358362 self .assertEqual (r .varint (), 0 ) # extensions
359363 r .assert_end ()
@@ -399,7 +403,7 @@ def test_hive_sign_account_create(self):
399403 r = _Reader (resp .serialized_tx )
400404 ref_num , ref_prefix , expiration = _parse_header (r , HIVE_OP_ACCOUNT_CREATE )
401405 self .assertEqual ((ref_num , ref_prefix , expiration ), (12345 , 67890 , 1700000000 ))
402- self .assertEqual (r .asset (), (3000 , 3 , "HIVE" )) # fee
406+ self .assertEqual (r .asset (), (3000 , 3 , _WIRE_SYMBOL [ "HIVE" ])) # fee
403407 self .assertEqual (r .string (), b"kksponsor" ) # creator
404408 self .assertEqual (r .string (), b"kktestacct" ) # new_account_name
405409 self .assertEqual (r .authority (), raw [ROLE_OWNER ])
0 commit comments