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

Fix Skip transfer status #729

Merged
merged 2 commits into from
Oct 24, 2024
Merged

Fix Skip transfer status #729

merged 2 commits into from
Oct 24, 2024

Conversation

ruixhuang
Copy link
Contributor

The hash coming back from the skip endpoint doesn't have "0x" and is uppercased...

@ruixhuang ruixhuang marked this pull request as ready for review October 24, 2024 02:09
@@ -855,6 +856,10 @@ internal class OnboardingSupervisor(
helper.post(url, null, body.toJsonPrettyPrint()) { _, response, httpCode, _ ->
if (response != null) {
update(stateMachine.routerTrack(response), oldState)
val isTracked = oldState?.trackStatuses?.get(hash) == true
if (isTracked) {
fetchTransferStatusSkip(hash, fromChainId)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Request status right away instead of waiting for the next timer trigger.

@mike-dydx mike-dydx merged commit bc93ce5 into main Oct 24, 2024
3 checks passed
@mike-dydx mike-dydx deleted the feature/transfer_fix2 branch October 24, 2024 13:40
modified[txHash] = true
var txHash = parser.asString(payload.get("tx_hash")) ?: return modified
if (!txHash.startsWith("0x")) {
txHash = "0x$txHash"
Copy link
Contributor

Choose a reason for hiding this comment

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

i'm not sure we always want this though, what if the user submits a non EVM transaction? the tx hash may not necessarily start with 0x, right?
@ruixhuang

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

Successfully merging this pull request may close these issues.

3 participants