We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 25d4fda + 2f090dd commit 545bf3aCopy full SHA for 545bf3a
Sources/web3swift/Web3/Web3+Structures.swift
@@ -114,11 +114,13 @@ extension EthereumTransaction: Decodable {
114
public init(from decoder: Decoder) throws {
115
let options = try TransactionOptions(from: decoder)
116
let container = try decoder.container(keyedBy: CodingKeys.self)
117
+
118
// test to see if it is a EIP-1559 wrapper
119
if let envelope = try decodeHexToBigUInt(container, key: .type, allowOptional: true) {
120
// if present and non-sero we are a new wrapper we can't decode
121
if envelope != BigInt(0) { throw Web3Error.dataError }
122
}
123
124
var data = try decodeHexToData(container, key: .data, allowOptional: true)
125
if data != nil {
126
self.data = data!
0 commit comments