Skip to content
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

IOS-7619 [Staking] MATIC token in Ethereum #853

Merged
merged 3 commits into from
Oct 4, 2024

Conversation

Balashov152
Copy link
Contributor

@Balashov152 Balashov152 commented Sep 26, 2024

Проверил

  • Апрув USDT in Polygon network
  • Swap USDT to Polygon
  • Send USDT in network
  • Send Polygon

@Balashov152 Balashov152 marked this pull request as ready for review September 26, 2024 09:52
Copy link
Collaborator

@tureck1y tureck1y left a comment

Choose a reason for hiding this comment

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

Что-то не то, зачем вообще эти изменения? Лучше особо не стало и потребует огромного регресса

@@ -78,19 +83,28 @@ class EthereumTransactionBuilder {
return method.data
}

func buildSigningInput(destination: DestinationType, fee: Fee, parameters: EthereumTransactionParams) throws -> EthereumSigningInput {
guard let nonce = parameters.nonce, nonce >= 0 else {
func buildSigningInput(destination: String, coinAmount: BigUInt, fee: Fee, nonce: Int?, data: Data?) throws -> EthereumSigningInput {
Copy link
Collaborator

Choose a reason for hiding this comment

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

так а нонс не нужен тут опциональный

@@ -209,35 +194,38 @@ private extension EthereumTransactionBuilder {
throw EthereumTransactionBuilderError.invalidAmount
}

let parameters = transaction.params as? EthereumTransactionParams ?? .empty
Copy link
Collaborator

Choose a reason for hiding this comment

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

лучше оставить как было throw EthereumTransactionBuilderError.feeParametersNotFound

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Тут не сосем feeParametersNotFound по этому добавил еще один тип ошибки

@@ -209,35 +194,38 @@ private extension EthereumTransactionBuilder {
throw EthereumTransactionBuilderError.invalidAmount
}

let parameters = transaction.params as? EthereumTransactionParams ?? .empty
let nonce = parameters.nonce
Copy link
Collaborator

Choose a reason for hiding this comment

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

а нонс тут развернуть тогда тоже

@@ -22,8 +22,4 @@ extension EthereumTransactionParams {
func with(nonce: Int) -> EthereumTransactionParams {
EthereumTransactionParams(data: data, nonce: nonce)
}

static var empty: EthereumTransactionParams {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Не используется, да и не нужны такие пустые параметры

@tureck1y tureck1y merged commit ade7eb1 into develop Oct 4, 2024
1 check passed
@tureck1y tureck1y deleted the feature/IOS-7619-MATIC-Staking branch October 4, 2024 09:05
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.

5 participants