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

Preps for esdt-safe integration tests #6542

Open
wants to merge 2 commits into
base: feat/esdt-prefix
Choose a base branch
from

Conversation

axenteoctavian
Copy link

Reasoning behind the pull request

  • refactoring and preps for esdt-safe integration tests

Proposed changes

Testing procedure

Pre-requisites

Based on the Contributing Guidelines the PR author and the reviewers must check the following requirements are met:

  • was the PR targeted to the correct branch?
  • if this is a larger feature that probably needs more than one PR, is there a feat branch created?
  • if this is a feat branch merging, do all satellite projects have a proper tag inside go.mod?

@axenteoctavian axenteoctavian self-assigned this Oct 17, 2024
@axenteoctavian axenteoctavian changed the title Peps for esdt-safe integration tests Preps for esdt-safe integration tests Oct 17, 2024
Base automatically changed from merge-rc-1-7-next-into-esdt-prefix-16-oct to feat/esdt-prefix October 17, 2024 11:24
@mariusmihaic mariusmihaic self-requested a review October 18, 2024 08:32
Comment on lines -89 to -91
"@000000000000000005004c13819a7f26de997e7c6720a6efe2d4b85c0609c9ad" + // price_aggregator_address
"@" + hex.EncodeToString([]byte("USDC-350c4e")) + // usdc_token_id
"@" + hex.EncodeToString([]byte("WEGLD-a28c59")) // wegld_token_id
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it ok we don't have any fee market address set and tested anymore?

@@ -109,8 +114,36 @@ func deployBridgeSetup(
}
}

// Deposit will deposit tokens in the bridge sc safe contract
func Deposit(
func enshrineEsdtSafeContract(
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 literally the same function as simpleEnshrineEsdtSafeContract , only called with a different argument for DeployContract

Copy link
Contributor

Choose a reason for hiding this comment

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

You could've simply just passed from deployBridgeSetup contract address.

@@ -289,7 +288,7 @@ func IssueFungible(
txResult := SendTransaction(t, cs, sender, nonce, vm.ESDTSCAddress, issueCost, issueArgs, uint64(60000000))
RequireSuccessfulTransaction(t, txResult)

return getEsdtIdentifier(t, nodeHandler, tokenTicker, core.FungibleESDT)
return getEsdtIdentifier(t, cs.GetNodeHandler(core.MetachainShardId), tokenTicker, core.FungibleESDT)
Copy link
Contributor

Choose a reason for hiding this comment

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

This will break sovereign integration tests if the function is used. Should be reverted.

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.

2 participants