Skip to content

Commit 992d411

Browse files
Merge pull request #570 from mloit/hotfix/fix-issue-569
2 parents 3342d0e + b8f924d commit 992d411

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/web3swift/Web3/Web3+Options.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ extension TransactionOptions: Decodable {
235235
self.to = ethAddr
236236
}
237237

238-
self.from = try container.decodeIfPresent(EthereumAddress.self, forKey: .to)
238+
self.from = try container.decodeIfPresent(EthereumAddress.self, forKey: .from)
239239

240240
if let gasPrice = try? container.decodeHex(BigUInt.self, forKey: .gasPrice) {
241241
self.gasPrice = .manual(gasPrice)

0 commit comments

Comments
 (0)