Skip to content

Commit 6eda73a

Browse files
committed
other fixups to conform with changes as a result of the latest updates to develop.
1 parent dc465a3 commit 6eda73a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Sources/web3swift/Convenience/Decodable+Extensions.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ extension BigUInt: DecodableFromHex {
144144
}
145145

146146
extension UInt: DecodableFromHex {
147-
public init?(from hexString: String) {
147+
public init?(fromHex hexString: String) {
148148
self.init()
149149
guard let tmp = UInt(hexString.stripHexPrefix(), radix: 16) else { return nil }
150150
self = tmp

Sources/web3swift/Transaction/EIP2930Envelope.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ public struct AccessListEntry: CustomStringConvertible, Decodable {
326326
self.storageKeys = []
327327
if let keyStrings = try? container.decode([String].self, forKey: .storageKeys) {
328328
for keyString in keyStrings {
329-
guard let number = BigUInt(from: keyString) else { throw Web3Error.dataError }
329+
guard let number = BigUInt(fromHex: keyString) else { throw Web3Error.dataError }
330330
self.storageKeys.append(number)
331331
}
332332
}

0 commit comments

Comments
 (0)