Skip to content

Fix typos #744

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

Fix typos #744

wants to merge 1 commit into from

Conversation

rex4539
Copy link

@rex4539 rex4539 commented Jan 30, 2023

No description provided.

@yaroslavyaroslav
Copy link
Collaborator

There's similar PR already provided #743, could you please use it as base for yours, so we can cover here things that has been missed there.

@@ -51,10 +51,10 @@ extension APIRequest {

/// This bit of code is purposed to work with literal types that comes in ``Response`` in hexString type.
/// Currently it's just `Data` and any kind of Integers `(U)Int`, `Big(U)Int`.
if let LiteralType = Result.self as? LiteralInitiableFromString.Type {
if let LiteralType = Result.self as? LiteralInitableFromString.Type {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please undo this changes, as they affecting code, rather then comments and should be reviewed separately.

@@ -8,15 +8,15 @@
import Foundation
import BigInt

extension Int: LiteralInitiableFromString { }
extension Int: LiteralInitableFromString { }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please undo this changes, as they affecting code, rather then comments and should be reviewed separately.

/// More than that their notation (e.g. 0x12d) are don't fit with the default Numeric decoders behaviours.
/// So to work around that for generic cases we're going to force decode `APIResponse.result` field as `String`
/// and then initiate it
protocol LiteralInitiableFromString: APIResultType {
protocol LiteralInitableFromString: APIResultType {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please undo this changes, as they affecting code, rather then comments and should be reviewed separately.

@@ -64,9 +64,9 @@ public struct IBAN {

internal static func decodeToInts(_ iban: String) -> String {
let uppercasedIBAN = iban.replacingOccurrences(of: " ", with: "").uppercased()
let begining = String(uppercasedIBAN[0..<4])
let beginning = String(uppercasedIBAN[0..<4])
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please undo this changes, as they affecting code, rather then comments and should be reviewed separately.

@@ -60,7 +60,7 @@ final public class Oracle {
///
/// - Parameter array: `[[min], [middle], [max]]` 2 dimensional array
/// - Returns: `[min, middle, max].count == self.percentiles.count`
private func soft(twoDimentsion array: [[BigUInt]]) -> [BigUInt] {
private func soft(twoDimension array: [[BigUInt]]) -> [BigUInt] {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please undo this changes, as they affecting code, rather then comments and should be reviewed separately.

@@ -99,24 +99,24 @@ final public class Oracle {
/// - Returns: `[percentile_1, percentile_2, percentile_3, ...].count == self.percentile.count`
/// by default there's 3 percentile.
private func suggestTipValue() async throws -> [BigUInt] {
var rearrengedArray: [[BigUInt]] = []
var rearrangedArray: [[BigUInt]] = []
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please undo this changes, as they affecting code, rather then comments and should be reviewed separately.

@@ -219,53 +219,53 @@ extension CodableTransaction: Codable {

public func encode(to encoder: Encoder) throws {
// FIXME: There's a huge mess here, please take a look here at code review if any.
var containier = encoder.container(keyedBy: CodingKeys.self)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please undo this changes, as they affecting code, rather then comments and should be reviewed separately.

@@ -54,7 +54,7 @@ public struct LegacyEnvelope: AbstractEnvelope {
toReturn += "Data: " + self.data.toHexString().addHexPrefix().lowercased() + "\n"
toReturn += "Resolved chainID: " + String(describing: self.chainID) + "\n"
toReturn += "- Intrinsic chainID: " + String(describing: self.explicitChainID) + "\n"
toReturn += "- Infered chainID: " + String(describing: self.impliedChainID) + "\n"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please undo this changes, as they affecting code, rather then comments and should be reviewed separately.

@@ -100,7 +100,7 @@ fileprivate extension EIP712Hashable {
}

func encodePrimaryType() -> String {
let parametrs: [String] = Mirror(reflecting: self).children.compactMap { key, value in
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please undo this changes, as they affecting code, rather then comments and should be reviewed separately.

@yaroslavyaroslav
Copy link
Collaborator

Seems like mistakes one, so it would be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants