@@ -32,7 +32,7 @@ public final class AccountCreateTransaction: Transaction {
3232 autoRenewPeriod: Duration ? = . days( 90 ) ,
3333 autoRenewAccountId: AccountId ? = nil ,
3434 accountMemo: String = " " ,
35- maxAutomaticTokenAssociations: UInt32 = 0 ,
35+ maxAutomaticTokenAssociations: Int32 = 0 ,
3636 alias: EvmAddress ? = nil ,
3737 stakedAccountId: AccountId ? = nil ,
3838 stakedNodeId: UInt64 ? = nil ,
@@ -59,7 +59,7 @@ public final class AccountCreateTransaction: Transaction {
5959 self . receiverSignatureRequired = data. receiverSigRequired
6060 self . autoRenewPeriod = data. hasAutoRenewPeriod ? . fromProtobuf( data. autoRenewPeriod) : nil
6161 self . accountMemo = data. memo
62- self . maxAutomaticTokenAssociations = UInt32 ( data. maxAutomaticTokenAssociations)
62+ self . maxAutomaticTokenAssociations = data. maxAutomaticTokenAssociations
6363
6464 if let id = data. stakedID {
6565 switch id {
@@ -175,15 +175,15 @@ public final class AccountCreateTransaction: Transaction {
175175 }
176176
177177 /// The maximum number of tokens that an Account can be implicitly associated with.
178- public var maxAutomaticTokenAssociations : UInt32 {
178+ public var maxAutomaticTokenAssociations : Int32 {
179179 willSet {
180180 ensureNotFrozen ( )
181181 }
182182 }
183183
184184 /// Sets the maximum number of tokens that an Account can be implicitly associated with.
185185 @discardableResult
186- public func maxAutomaticTokenAssociations( _ maxAutomaticTokenAssociations: UInt32 ) -> Self {
186+ public func maxAutomaticTokenAssociations( _ maxAutomaticTokenAssociations: Int32 ) -> Self {
187187 self . maxAutomaticTokenAssociations = maxAutomaticTokenAssociations
188188
189189 return self
@@ -288,7 +288,7 @@ extension AccountCreateTransaction: ToProtobuf {
288288 autoRenewPeriod? . toProtobufInto ( & proto. autoRenewPeriod)
289289 // autoRenewAccountId?.toProtobufInto(&proto.autoRenewAccount)
290290 proto. memo = accountMemo
291- proto. maxAutomaticTokenAssociations = Int32 ( maxAutomaticTokenAssociations)
291+ proto. maxAutomaticTokenAssociations = maxAutomaticTokenAssociations
292292
293293 if let alias = alias {
294294 proto. alias = alias. data
0 commit comments