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

MVX-> ETH integration test swap with chain simulator #290

Merged
merged 5 commits into from
Mar 11, 2024

Conversation

sstanculeanu
Copy link
Contributor

  • added swap back to eth
  • proper wait for tx to be done
  • updated contracts

@sstanculeanu sstanculeanu self-assigned this Mar 5, 2024
@iulianpascalau iulianpascalau self-requested a review March 5, 2024 14:33
@sstanculeanu sstanculeanu changed the title Mvx -> eth MVX-> ETH integration test swap with chain simulator Mar 5, 2024
}

// wait for tx to be done, in order to get the contract address
timeoutTimer := time.NewTimer(instance.roundDuration * 5)
timeoutTimer := time.NewTimer(instance.roundDuration * 20)
Copy link
Contributor

Choose a reason for hiding this comment

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

this timer is only a fallback protection as the proxyInstance.ProcessTransactionStatus should always give a result.
However, the approach is a little bit misleading because it will block the tes forever if one transaction is failed. I will try to come up with a better solution to this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated as suggested

}

if ethToMVXDone && mvxToETHDone {
log.Info("MVX<->ETH transfers done")
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@@ -757,13 +820,13 @@ func issueAndWhitelistToken(

log.Info("multi-transfer set max bridge amount for token tx executed", "hash", hash, "status", txResult.Status)

return newUniversalToken
return newUniversalToken, newChainSpecificToken
Copy link
Contributor

Choose a reason for hiding this comment

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

a little bit misleading that we return 2 string parameters here. Not having a better solution, thus.

iulianpascalau
iulianpascalau previously approved these changes Mar 6, 2024
iulianpascalau
iulianpascalau previously approved these changes Mar 8, 2024
@dragos-rebegea dragos-rebegea merged commit 6b4b651 into feat/chain-simulator Mar 11, 2024
3 checks passed
@dragos-rebegea dragos-rebegea deleted the mvx_to_eth branch March 11, 2024 16:28
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