Skip to content

Commit

Permalink
fixes after merge
Browse files Browse the repository at this point in the history
  • Loading branch information
axenteoctavian committed Oct 21, 2024
1 parent b181d47 commit 77d925c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion integrationTests/chainSimulator/bridge/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,10 @@ func esdtSafeContract(
nonce *uint64,
systemContractDeploy []byte,
_ ArgsEsdtSafe,
contractWasmPath string,
) []byte {
esdtSafeArgs := "@" // is_sovereign_chain
return chainSim.DeployContract(t, cs, ownerAddress, nonce, systemContractDeploy, esdtSafeArgs, esdtSafeWasmPath)
return chainSim.DeployContract(t, cs, ownerAddress, nonce, systemContractDeploy, esdtSafeArgs, contractWasmPath)
}

func enshrineEsdtSafeContract(
Expand Down
6 changes: 3 additions & 3 deletions integrationTests/chainSimulator/bridge/esdtSafe_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func TestChainSimulator_ExecuteAndDepositTokensWithPrefix(t *testing.T) {
// deploy bridge setup
initialAddress := "erd1l6xt0rqlyzw56a3k8xwwshq2dcjwy3q9cppucvqsmdyw8r98dz3sae0kxl"
chainSim.InitAddressesAndSysAccState(t, cs, initialAddress)
bridgeData := deployBridgeSetup(t, cs, initialAddress, ArgsEsdtSafe{}, esdtSafeContract)
bridgeData := deployBridgeSetup(t, cs, initialAddress, ArgsEsdtSafe{}, esdtSafeContract, esdtSafeWasmPath)
esdtSafeAddr, _ := cs.GetNodeHandler(0).GetCoreComponents().AddressPubKeyConverter().Encode(bridgeData.ESDTSafeAddress)
esdtSafeAddrShard := chainSim.GetShardForAddress(cs, esdtSafeAddr)

Expand Down Expand Up @@ -273,7 +273,7 @@ func TestChainSimulator_DepositAndExecuteOperations(t *testing.T) {
// deploy bridge setup
initialAddress := "erd1l6xt0rqlyzw56a3k8xwwshq2dcjwy3q9cppucvqsmdyw8r98dz3sae0kxl"
chainSim.InitAddressesAndSysAccState(t, cs, initialAddress)
bridgeData := deployBridgeSetup(t, cs, initialAddress, ArgsEsdtSafe{}, esdtSafeContract)
bridgeData := deployBridgeSetup(t, cs, initialAddress, ArgsEsdtSafe{}, esdtSafeContract, esdtSafeWasmPath)
esdtSafeAddr, _ := cs.GetNodeHandler(0).GetCoreComponents().AddressPubKeyConverter().Encode(bridgeData.ESDTSafeAddress)
esdtSafeAddrShard := chainSim.GetShardForAddress(cs, esdtSafeAddr)

Expand Down Expand Up @@ -340,7 +340,7 @@ func generateAccountsAndTokens(

account := createNewAccount(cs, &accountShardId)
supply := big.NewInt(14556666767)
tokenId := chainSim.IssueFungible(t, cs, account.Wallet.Bytes, &account.Nonce, issueCost, "TKN", "TKN", 18, supply)
tokenId := chainSim.IssueFungible(t, cs, cs.GetNodeHandler(core.MetachainShardId), account.Wallet.Bytes, &account.Nonce, issueCost, "TKN", "TKN", 18, supply)
token := chainSim.ArgsDepositToken{
Identifier: tokenId,
Nonce: uint64(0),
Expand Down
2 changes: 1 addition & 1 deletion integrationTests/chainSimulator/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,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 GetIssuedEsdtIdentifier(t, nodeHandler, tokenTicker, core.FungibleESDT)
}

// GetIssuedEsdtIdentifier will return the token identifier for and issued token
Expand Down

0 comments on commit 77d925c

Please sign in to comment.