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-7438 Filecoin #824

Merged
merged 9 commits into from
Sep 4, 2024
Merged

Conversation

amuraveinik
Copy link
Contributor

@amuraveinik amuraveinik commented Sep 3, 2024

amuraveinik and others added 4 commits August 27, 2024 12:06
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
@amuraveinik amuraveinik marked this pull request as draft September 3, 2024 14:24
@amuraveinik
Copy link
Contributor Author

Жду довлития воллет менеджера

@amuraveinik amuraveinik marked this pull request as ready for review September 4, 2024 11:04
@amuraveinik
Copy link
Contributor Author

amuraveinik commented Sep 4, 2024

Тесты не проходят по таймауту

[!] xcodebuild -showBuildSettings timed out after 4 retries with a base timeout of 3. You can override the base timeout value with the environment variable FASTLANE_XCODEBUILD_SETTINGS_TIMEOUT, and the number of retries with the environment variable FASTLANE_XCODEBUILD_SETTINGS_RETRIES

Локально все ок

@tureck1y tureck1y changed the title IOS-7438 Filecoin to release branch IOS-7438 Filecoin Sep 4, 2024
tureck1y
tureck1y previously approved these changes Sep 4, 2024
Balashov152
Balashov152 previously approved these changes Sep 4, 2024
m3g0byt3
m3g0byt3 previously approved these changes Sep 4, 2024
Comment on lines 36 to 38
if let error = error as? JSONRPC.APIError, error.code == 1 {
return .justWithError(output: FilecoinAccountInfo(balance: 0, nonce: 0))
}
Copy link
Contributor

Choose a reason for hiding this comment

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

А что за код такой специальный? И фоллбек на все нули для чего тут?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

На новых аккаунтах возвращается ошибка с таким кодом, после пополнения нормализуется.
Такое ожидаемое поведение

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Точнее будет сказать аккаунт создается только после пополнения. Из дора:

дополнительные условия по блокчейну – депозита или резерва нет, но аккаунт создается только после пополнения

На коиносе похожее поведение, только там возвращается пустой результат, а тут прям ошибка с кодом

Copy link
Contributor

Choose a reason for hiding this comment

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

В таким случаях мы вроде как кидаем WalletError.noAccount

Copy link
Collaborator

Choose a reason for hiding this comment

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

Да, все так, нужно кинуть эту ошибку

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Допушил фикс

dbaturin
dbaturin previously approved these changes Sep 4, 2024

static func unmarshalledSignature(from originalSignature: Data, publicKey: Data, hash: Data) throws -> Data {
let signature = try Secp256k1Signature(with: originalSignature)
let unmarshalledSignature = try signature.unmarshal(with: publicKey, hash: hash)
Copy link
Collaborator

Choose a reason for hiding this comment

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

А вот эта функция из либы какой-то? Просто 27, что бы вычитаем - это аообще специфика для legacy ETH подписей, по идее, это не здесь вычитать надо, а приплюсовывать, где необходимо.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

В соседнем PRе договорились это переделать и вынести в TangemSDK, так что будет учтено
#818 (comment)

@tureck1y tureck1y merged commit 6820187 into releases/develop-669 Sep 4, 2024
1 check passed
@tureck1y tureck1y deleted the feature/IOS-7438_filecoin branch September 4, 2024 14:30
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