Skip to content

Commit ce1d082

Browse files
committed
bug fix, hash decoding changed
1 parent 0a0a799 commit ce1d082

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web3swift/BlockExplorer/Classes/BlockExplorer+GetTransactionHistory.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public struct TransactionHistoryRecord: Decodable {
8484
let container = try decoder.container(keyedBy: CodingKeys.self)
8585
id = try container.decode(String.self, forKey: CodingKeys.id)
8686
let hashString = try container.decode(String.self, forKey: CodingKeys.hash)
87-
guard let hashData = hashString.interpretAsBinaryData() else {
87+
guard let hashData = Data.fromHex(hashString) else {
8888
throw Web3Error.transactionSerializationError
8989
}
9090
hash = hashData

0 commit comments

Comments
 (0)