-
Notifications
You must be signed in to change notification settings - Fork 9
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
Conversation
sstanculeanu
commented
Mar 5, 2024
- added swap back to eth
- proper wait for tx to be done
- updated contracts
} | ||
|
||
// 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) |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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") |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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.