Skip to content

Commit b8f924d

Browse files
committed
correct the decoding key for from in transactionOptions
1 parent 53b3c36 commit b8f924d

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)