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

Integrate new contracts & added more e2e tests #364

Merged
merged 7 commits into from
Oct 22, 2024

Conversation

iulianpascalau
Copy link
Contributor

@iulianpascalau iulianpascalau commented Oct 21, 2024

  • refactor issue tokens steps

Reference PR: multiversx/mx-bridge-eth-sc-rs#237

@iulianpascalau iulianpascalau marked this pull request as draft October 21, 2024 11:35
- fixed out of gas error in eth client in tests
- integrated new contracts
@iulianpascalau iulianpascalau marked this pull request as ready for review October 21, 2024 16:13
}

func (handler *MultiversxHandler) issueAndWhitelistTokensWithChainSpecific(ctx context.Context, params IssueTokenParams) {
handler.issueUniversalToken(ctx, params)
Copy link
Contributor

Choose a reason for hiding this comment

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

it is clearer to see the steps now 👍

hex.EncodeToString(operation.ValueToSendFromMvX.Bytes()),
hex.EncodeToString([]byte(createTransactionFunction)),
hex.EncodeToString([]byte(unwrapTokenCreateTransactionFunction)),
Copy link
Contributor

Choose a reason for hiding this comment

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

this is why you changed from chain specific token to universal one 👍

@@ -877,23 +966,24 @@ func (handler *MultiversxHandler) CreateDepositsOnMultiversxForToken(
createDepositGasLimit,
esdtTransferFunction,
[]string{
hex.EncodeToString([]byte(token.MvxChainSpecificToken)),
hex.EncodeToString([]byte(token.MvxUniversalToken)),
Copy link
Contributor

Choose a reason for hiding this comment

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

SendDepositTransactionFromMultiversx and CreateDepositsOnMultiversxForToken are very similar. why do we need both?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

remained from the last refactoring. Will take out the common code, and use only one

- removed duplicated code
@dragos-rebegea dragos-rebegea merged commit 9993ccc into feat/v3 Oct 22, 2024
4 checks passed
@dragos-rebegea dragos-rebegea deleted the more-e2e-tests branch October 22, 2024 07:31
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