Skip to content

Commit

Permalink
fix - only transfer role for second address
Browse files Browse the repository at this point in the history
  • Loading branch information
sasurobert committed Jul 30, 2024
1 parent 1521c98 commit 06b165b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions integrationTests/chainSimulator/vm/esdtImprovements_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,8 @@ func transferAndCheckTokensMetaData(t *testing.T, isCrossShard bool, isMultiTran
setAddressEsdtRoles(t, cs, nonce, addrs[0], metaESDTTokenID, roles)
nonce++

tx = setSpecialRoleTx(nonce, addrs[0].Bytes, addrs[1].Bytes, metaESDTTokenID, roles)
rolesTransfer := [][]byte{[]byte(core.ESDTRoleTransfer)}
tx = setSpecialRoleTx(nonce, addrs[0].Bytes, addrs[1].Bytes, metaESDTTokenID, rolesTransfer)
nonce++

txResult, err = cs.SendTxAndGenerateBlockTilTxIsExecuted(tx, maxNumOfBlockToGenerateWhenExecutingTx)
Expand All @@ -161,7 +162,7 @@ func transferAndCheckTokensMetaData(t *testing.T, isCrossShard bool, isMultiTran
setAddressEsdtRoles(t, cs, nonce, addrs[0], nftTokenID, roles)
nonce++

tx = setSpecialRoleTx(nonce, addrs[0].Bytes, addrs[1].Bytes, nftTokenID, roles)
tx = setSpecialRoleTx(nonce, addrs[0].Bytes, addrs[1].Bytes, nftTokenID, rolesTransfer)
nonce++

txResult, err = cs.SendTxAndGenerateBlockTilTxIsExecuted(tx, maxNumOfBlockToGenerateWhenExecutingTx)
Expand All @@ -185,7 +186,7 @@ func transferAndCheckTokensMetaData(t *testing.T, isCrossShard bool, isMultiTran
setAddressEsdtRoles(t, cs, nonce, addrs[0], sftTokenID, roles)
nonce++

tx = setSpecialRoleTx(nonce, addrs[0].Bytes, addrs[1].Bytes, sftTokenID, roles)
tx = setSpecialRoleTx(nonce, addrs[0].Bytes, addrs[1].Bytes, sftTokenID, rolesTransfer)
nonce++

txResult, err = cs.SendTxAndGenerateBlockTilTxIsExecuted(tx, maxNumOfBlockToGenerateWhenExecutingTx)
Expand Down

0 comments on commit 06b165b

Please sign in to comment.