@@ -71,10 +71,10 @@ pub struct TokenUpdateTransactionData {
7171 token_id : Option < TokenId > ,
7272
7373 /// The publicly visible name of the token.
74- name : String ,
74+ token_name : String ,
7575
7676 /// The publicly visible token symbol.
77- symbol : String ,
77+ token_symbol : String ,
7878
7979 /// The account which will act as a treasury for the token.
8080 treasury_account_id : Option < AccountId > ,
@@ -133,15 +133,15 @@ impl TokenUpdateTransaction {
133133
134134 /// Sets the new publicly visible name of the token.
135135 /// Maximum 100 characters.
136- pub fn name ( & mut self , name : impl Into < String > ) -> & mut Self {
137- self . body . data . name = name . into ( ) ;
136+ pub fn token_name ( & mut self , token_name : impl Into < String > ) -> & mut Self {
137+ self . body . data . token_name = token_name . into ( ) ;
138138 self
139139 }
140140
141141 /// Sets the new publicly visible token symbol.
142142 /// Maximum 100 characters.
143- pub fn symbol ( & mut self , symbol : impl Into < String > ) -> & mut Self {
144- self . body . data . symbol = symbol . into ( ) ;
143+ pub fn token_symbol ( & mut self , token_symbol : impl Into < String > ) -> & mut Self {
144+ self . body . data . token_symbol = token_symbol . into ( ) ;
145145 self
146146 }
147147
@@ -264,8 +264,8 @@ impl ToTransactionDataProtobuf for TokenUpdateTransactionData {
264264 ) -> services:: transaction_body:: Data {
265265 services:: transaction_body:: Data :: TokenUpdate ( services:: TokenUpdateTransactionBody {
266266 token : self . token_id . to_protobuf ( ) ,
267- name : self . name . clone ( ) ,
268- symbol : self . symbol . clone ( ) ,
267+ name : self . token_name . clone ( ) ,
268+ symbol : self . token_symbol . clone ( ) ,
269269 treasury : self . treasury_account_id . to_protobuf ( ) ,
270270 admin_key : self . admin_key . to_protobuf ( ) ,
271271 kyc_key : self . kyc_key . to_protobuf ( ) ,
@@ -316,8 +316,8 @@ mod tests {
316316 const TOKEN_UPDATE_TRANSACTION_JSON : & str = r#"{
317317 "$type": "tokenUpdate",
318318 "tokenId": "0.0.1001",
319- "name ": "Pound",
320- "symbol ": "LB",
319+ "tokenName ": "Pound",
320+ "tokenSymbol ": "LB",
321321 "treasuryAccountId": "0.0.1002",
322322 "adminKey": {
323323 "single": "302a300506032b6570032100d1ad76ed9b057a3d3f2ea2d03b41bcd79aeafd611f941924f0f6da528ab066fd"
@@ -367,8 +367,8 @@ mod tests {
367367
368368 transaction
369369 . token_id ( TokenId :: from ( 1001 ) )
370- . name ( "Pound" )
371- . symbol ( "LB" )
370+ . token_name ( "Pound" )
371+ . token_symbol ( "LB" )
372372 . treasury_account_id ( AccountId :: from ( 1002 ) )
373373 . admin_key ( PublicKey :: from_str ( ADMIN_KEY ) ?)
374374 . kyc_key ( PublicKey :: from_str ( KYC_KEY ) ?)
@@ -396,8 +396,8 @@ mod tests {
396396 let data = assert_matches ! ( transaction. body. data, AnyTransactionData :: TokenUpdate ( transaction) => transaction) ;
397397
398398 assert_eq ! ( data. token_id. unwrap( ) , TokenId :: from( 1001 ) ) ;
399- assert_eq ! ( data. name , "Pound" ) ;
400- assert_eq ! ( data. symbol , "LB" ) ;
399+ assert_eq ! ( data. token_name , "Pound" ) ;
400+ assert_eq ! ( data. token_symbol , "LB" ) ;
401401 assert_eq ! ( data. auto_renew_period. unwrap( ) , Duration :: days( 90 ) ) ;
402402 assert_eq ! ( data. token_memo, "A new memo" ) ;
403403 assert_eq ! (
0 commit comments