Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Koray Koska committed Jul 7, 2019
1 parent 08c7bf3 commit 0ef4e64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Web3/Classes/ContractABI/ABI/ABIConvertible.swift
Original file line number Diff line number Diff line change
Expand Up @@ -290,15 +290,15 @@ extension Data: ABIConvertible {
let bytes = valueString.hexToBytes()
//trim bytes to length
let trimmedBytes = bytes.prefix(length)
self.init(bytes: trimmedBytes)
self.init(trimmedBytes)
}

public init?(hexString: String, length: UInt) {
//convert to bytes
let bytes = hexString.hexToBytes()
//trim bytes to length
let trimmedBytes = bytes.prefix(Int(length))
self.init(bytes: trimmedBytes)
self.init(trimmedBytes)
}

public func abiEncode(dynamic: Bool) -> String? {
Expand Down

0 comments on commit 0ef4e64

Please sign in to comment.