-
Notifications
You must be signed in to change notification settings - Fork 721
Conversation
Black Duck Security ReportMerging #712 into master will not change security risk. Added ComponentsClean: 1 Removed ComponentsClean: 1 |
guard data.count == 32 else { | ||
return seal.reject(ENSError.decodeError) | ||
} | ||
let sub = Data(bytes: data.bytes[12...]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what does 12...
does?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
take last 20 (32 - 12 ) bytes for Address, maybe data.suffix(20) is better?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do you mind adding a comment that this is getting address, otherwise LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
@@ -11,17 +11,20 @@ struct AccountViewModel { | |||
let current: Wallet? | |||
let walletBalance: Balance? | |||
let server: RPCServer | |||
let ensName: String |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we pas ENS Model instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can change this later, a string is enough right now
@IBOutlet weak var balanceLable: UILabel! | ||
@IBOutlet weak var addressLable: UILabel! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you rename addressLabel
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
} | ||
return "\(ensName) (\(wallet.address.description))" | ||
return String(format: "%@ (%@...%@)", ensName, String(address.prefix(6)), String(address.suffix(6))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do 4
or even 3
, let's get this merged
This is essential for #311