Fix: setter should use newValue, not the attribute name (which is the old value)

pull/1962/head
Hwee-Boon Yar 4 years ago
parent 13dd3e2154
commit 16d8bde8ed
  1. 2
      AlphaWallet/Core/Collection+UIView.swift
  2. 2
      AlphaWallet/Tokens/Types/TokenObject.swift

@ -6,7 +6,7 @@ extension Collection where Element == UIView {
var alpha: CGFloat {
set {
for each in self {
each.alpha = alpha
each.alpha = newValue
}
}
get {

@ -63,7 +63,7 @@ class TokenObject: Object {
AlphaWallet.Address(uncheckedAgainstNullAddress: contract)!
}
set {
contract = contractAddress.eip55String
contract = newValue.eip55String
}
}

Loading…
Cancel
Save