Skip to content

Commit 76b3eba

Browse files
Merge pull request #620 from JeneaVranceanu/fix/transaction-data-returned-incorrectly
fix: ReadOperation data wasn't set and was returned incorrectly
2 parents 11a3c33 + ce9cd04 commit 76b3eba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/web3swift/Operations/ReadTransaction.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public class ReadOperation {
1414
public var transaction: CodableTransaction
1515
public var contract: EthereumContract
1616
public var method: String
17-
public private (set) var data: Data?
17+
public var data: Data? { transaction.data }
1818

1919
var web3: Web3
2020

0 commit comments

Comments
 (0)