diff --git a/Sources/web3swift/Web3/Web3+Options.swift b/Sources/web3swift/Web3/Web3+Options.swift index dac0b7d19..1b0a26fb2 100755 --- a/Sources/web3swift/Web3/Web3+Options.swift +++ b/Sources/web3swift/Web3/Web3+Options.swift @@ -235,7 +235,7 @@ extension TransactionOptions: Decodable { self.to = ethAddr } - self.from = try container.decodeIfPresent(EthereumAddress.self, forKey: .to) + self.from = try container.decodeIfPresent(EthereumAddress.self, forKey: .from) if let gasPrice = try? container.decodeHex(BigUInt.self, forKey: .gasPrice) { self.gasPrice = .manual(gasPrice)