From ce9cd04f99313479a0c3b9e3a16489863e7b0019 Mon Sep 17 00:00:00 2001 From: Jenea Vranceanu Date: Tue, 27 Sep 2022 17:41:03 +0100 Subject: [PATCH] fix: ReadTransaction data wasn't set and was returned incorrectly - it must be extracted from internal `transaction` object --- Sources/web3swift/Operations/ReadTransaction.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/web3swift/Operations/ReadTransaction.swift b/Sources/web3swift/Operations/ReadTransaction.swift index 7028dd0bc..5c721db19 100755 --- a/Sources/web3swift/Operations/ReadTransaction.swift +++ b/Sources/web3swift/Operations/ReadTransaction.swift @@ -14,7 +14,7 @@ public class ReadOperation { public var transaction: CodableTransaction public var contract: EthereumContract public var method: String - public private (set) var data: Data? + public var data: Data? { transaction.data } var web3: Web3