-
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
Integrate new contracts & added more e2e tests #364
Conversation
- fixed out of gas error in eth client in tests - integrated new contracts
} | ||
|
||
func (handler *MultiversxHandler) issueAndWhitelistTokensWithChainSpecific(ctx context.Context, params IssueTokenParams) { | ||
handler.issueUniversalToken(ctx, params) |
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.
it is clearer to see the steps now 👍
hex.EncodeToString(operation.ValueToSendFromMvX.Bytes()), | ||
hex.EncodeToString([]byte(createTransactionFunction)), | ||
hex.EncodeToString([]byte(unwrapTokenCreateTransactionFunction)), |
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 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)), |
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.
SendDepositTransactionFromMultiversx and CreateDepositsOnMultiversxForToken are very similar. why do we need both?
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.
remained from the last refactoring. Will take out the common code, and use only one
- removed duplicated code
Reference PR: multiversx/mx-bridge-eth-sc-rs#237