Update AccountUpdate operation

This commit is contained in:
Vladimir Babin 2021-03-30 10:44:27 +05:00
parent 3939a9a3b5
commit 02cf8c5873
1 changed files with 11 additions and 9 deletions

View File

@ -183,24 +183,26 @@ public struct Operation {
/// Updates an account.
public struct AccountUpdate: OperationType, Equatable {
public var account: String
public var masterAuthority: Authority?
public var activeAuthority: Authority?
public var regularAuthority: Authority?
public var master: Authority?
public var masterIsSet: Bool
public var active: Authority?
public var regular: Authority?
public var memoKey: PublicKey
public var jsonMetadata: String
public init(
account: String,
masterAuthority: Authority?,
activeAuthority: Authority?,
regularAuthority: Authority?,
master: Authority?,
active: Authority?,
regular: Authority?,
memoKey: PublicKey,
jsonMetadata: String = ""
) {
self.account = account
self.masterAuthority = masterAuthority
self.activeAuthority = activeAuthority
self.regularAuthority = regularAuthority
self.master = master
self.masterIsSet = master != nil
self.active = active
self.regular = regular
self.memoKey = memoKey
self.jsonMetadata = jsonMetadata
}