Skip to content

Commit

Permalink
fix linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ssd04 committed Jul 30, 2024
1 parent 5087af1 commit 1521c98
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
2 changes: 0 additions & 2 deletions integrationTests/chainSimulator/vm/egldMultiTransfer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,6 @@ func TestChainSimulator_EGLD_MultiTransfer_Insufficient_Funds(t *testing.T) {
egldValue, _ := big.NewInt(0).SetString(beforeBalanceStr0, 10)
egldValue = egldValue.Add(egldValue, big.NewInt(13))
tx = multiESDTNFTTransferWithEGLDTx(nonce, addrs[0].Bytes, addrs[1].Bytes, [][]byte{nftTokenID}, egldValue)
nonce++

txResult, err = cs.SendTxAndGenerateBlockTilTxIsExecuted(tx, maxNumOfBlockToGenerateWhenExecutingTx)
require.Nil(t, err)
Expand Down Expand Up @@ -422,7 +421,6 @@ func TestChainSimulator_EGLD_MultiTransfer_Invalid_Value(t *testing.T) {

egldValue := oneEGLD.Mul(oneEGLD, big.NewInt(3))
tx = multiESDTNFTTransferWithEGLDTx(nonce, addrs[0].Bytes, addrs[1].Bytes, [][]byte{nftTokenID}, egldValue)
nonce++
tx.Value = egldValue // invalid value field

txResult, err = cs.SendTxAndGenerateBlockTilTxIsExecuted(tx, maxNumOfBlockToGenerateWhenExecutingTx)
Expand Down
8 changes: 0 additions & 8 deletions integrationTests/chainSimulator/vm/esdtImprovements_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2216,7 +2216,6 @@ func TestChainSimulator_NFT_ChangeToDynamicType(t *testing.T) {
log.Info("Step 2. Send the NFT cross shard")

tx = esdtNFTTransferTx(nonce, addrs[1].Bytes, addrs[2].Bytes, nftTokenID)
nonce++
txResult, err = cs.SendTxAndGenerateBlockTilTxIsExecuted(tx, maxNumOfBlockToGenerateWhenExecutingTx)
require.Nil(t, err)
require.NotNil(t, txResult)
Expand Down Expand Up @@ -2419,7 +2418,6 @@ func testChainSimulatorChangeMetaData(t *testing.T, issueFn issueTxFunc) {
log.Info("Step 2. change the sft meta data (differently from the previous one) in the other shard")

tx = setSpecialRoleTx(nonce, addrs[1].Bytes, addrs[2].Bytes, tokenID, roles)
nonce++

txResult, err = cs.SendTxAndGenerateBlockTilTxIsExecuted(tx, maxNumOfBlockToGenerateWhenExecutingTx)
require.Nil(t, err)
Expand Down Expand Up @@ -2551,7 +2549,6 @@ func TestChainSimulator_NFT_RegisterDynamic(t *testing.T) {
nftMetaData.Nonce = []byte(hex.EncodeToString(big.NewInt(1).Bytes()))

tx = nftCreateTx(nonce, addrs[0].Bytes, nftTokenID, nftMetaData)
nonce++

txResult, err = cs.SendTxAndGenerateBlockTilTxIsExecuted(tx, maxNumOfBlockToGenerateWhenExecutingTx)
require.Nil(t, err)
Expand Down Expand Up @@ -2648,7 +2645,6 @@ func TestChainSimulator_MetaESDT_RegisterDynamic(t *testing.T) {
nftMetaData.Nonce = []byte(hex.EncodeToString(big.NewInt(1).Bytes()))

tx = nftCreateTx(nonce, addrs[0].Bytes, nftTokenID, nftMetaData)
nonce++

txResult, err = cs.SendTxAndGenerateBlockTilTxIsExecuted(tx, maxNumOfBlockToGenerateWhenExecutingTx)
require.Nil(t, err)
Expand Down Expand Up @@ -2796,7 +2792,6 @@ func TestChainSimulator_NFT_RegisterAndSetAllRolesDynamic(t *testing.T) {
nftMetaData.Nonce = []byte(hex.EncodeToString(big.NewInt(1).Bytes()))

tx = nftCreateTx(nonce, addrs[0].Bytes, nftTokenID, nftMetaData)
nonce++

txResult, err = cs.SendTxAndGenerateBlockTilTxIsExecuted(tx, maxNumOfBlockToGenerateWhenExecutingTx)
require.Nil(t, err)
Expand Down Expand Up @@ -2917,7 +2912,6 @@ func TestChainSimulator_SFT_RegisterAndSetAllRolesDynamic(t *testing.T) {
nftMetaData.Nonce = []byte(hex.EncodeToString(big.NewInt(1).Bytes()))

tx = nftCreateTx(nonce, addrs[0].Bytes, sftTokenID, nftMetaData)
nonce++

txResult, err = cs.SendTxAndGenerateBlockTilTxIsExecuted(tx, maxNumOfBlockToGenerateWhenExecutingTx)
require.Nil(t, err)
Expand Down Expand Up @@ -3093,7 +3087,6 @@ func TestChainSimulator_MetaESDT_RegisterAndSetAllRolesDynamic(t *testing.T) {
nftMetaData.Nonce = []byte(hex.EncodeToString(big.NewInt(1).Bytes()))

tx = nftCreateTx(nonce, addrs[0].Bytes, metaTokenID, nftMetaData)
nonce++

txResult, err = cs.SendTxAndGenerateBlockTilTxIsExecuted(tx, maxNumOfBlockToGenerateWhenExecutingTx)
require.Nil(t, err)
Expand Down Expand Up @@ -3721,7 +3714,6 @@ func TestChainSimulator_CreateAndPause_NFT(t *testing.T) {
log.Info("transfering token id", "tokenID", nftTokenID)

tx = esdtNFTTransferTx(nonce, addrs[0].Bytes, addrs[1].Bytes, nftTokenID)
nonce++
txResult, err = cs.SendTxAndGenerateBlockTilTxIsExecuted(tx, maxNumOfBlockToGenerateWhenExecutingTx)
require.Nil(t, err)
require.NotNil(t, txResult)
Expand Down

0 comments on commit 1521c98

Please sign in to comment.