Skip to content

Commit

Permalink
chore: remove Println from src and test (#1101)
Browse files Browse the repository at this point in the history
* chore: remove printLns from src and test

Signed-off-by: Ivan Ivanov <[email protected]>

* fix build

Signed-off-by: Ivan Ivanov <[email protected]>

---------

Signed-off-by: Ivan Ivanov <[email protected]>
  • Loading branch information
0xivanov authored Oct 9, 2024
1 parent d81ef0e commit c3b73b2
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 16 deletions.
5 changes: 0 additions & 5 deletions network_e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ package hedera

import (
"bytes"
"fmt"
"os"
"regexp"
"testing"
Expand Down Expand Up @@ -71,8 +70,6 @@ func TestIntegrationNodeForTransaction(t *testing.T) {
if len(matches) > 1 {
nodeAccountID := matches[1]
nodeAccountIDs[nodeAccountID] = struct{}{}
} else {
fmt.Println("Node Account ID not found")
}
buf.Reset()
}
Expand Down Expand Up @@ -116,8 +113,6 @@ func TestIntegrationNodeForQuery(t *testing.T) {
if len(matches) > 1 {
nodeAccountID := matches[1]
nodeAccountIDs[nodeAccountID] = struct{}{}
} else {
fmt.Println("Node Account ID not found")
}
buf.Reset()
}
Expand Down
4 changes: 1 addition & 3 deletions network_version_info_query_e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ package hedera
*/

import (
"fmt"
"testing"

"github.com/stretchr/testify/require"
Expand All @@ -34,12 +33,11 @@ func TestIntegrationNetworkVersionInfoQueryCanExecute(t *testing.T) {
t.Parallel()
env := NewIntegrationTestEnv(t)

q, err := NewNetworkVersionQuery().
_, err := NewNetworkVersionQuery().
SetMaxQueryPayment(NewHbar(1)).
SetNodeAccountIDs(env.NodeAccountIDs).
Execute(env.Client)
require.NoError(t, err)
fmt.Println(q)
err = CloseIntegrationTestEnv(env, nil)
require.NoError(t, err)
}
Expand Down
7 changes: 0 additions & 7 deletions token_reject_transaction_e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
package hedera

import (
"fmt"
"testing"

"github.com/stretchr/testify/assert"
Expand Down Expand Up @@ -644,9 +643,6 @@ func TestIntegrationTokenRejectTransactionDoesNotRemoveAllowanceNFT(t *testing.T
require.NoError(t, err)
env.Client.SetOperator(env.OperatorID, env.OperatorKey)

tokenInfo, _ := NewTokenNftInfoQuery().SetNftID(nftID.Nft(serials[1])).Execute(env.Client)
fmt.Println(tokenInfo[0].SpenderID)

// reject the token
frozenTxn, err := NewTokenRejectTransaction().
SetOwnerID(receiver).
Expand All @@ -658,9 +654,6 @@ func TestIntegrationTokenRejectTransactionDoesNotRemoveAllowanceNFT(t *testing.T
_, err = resp.SetValidateStatus(true).GetReceipt(env.Client)
require.NoError(t, err)

tokenInfo, _ = NewTokenNftInfoQuery().SetNftID(nftID.Nft(serials[1])).Execute(env.Client)
fmt.Println(tokenInfo[0].SpenderID)

// verify the allowance - should be 0 , because the receiver is no longer the owner
env.Client.SetOperator(spender, spenderKey)
frozenTx, err = NewTransferTransaction().
Expand Down
1 change: 0 additions & 1 deletion transaction_record.go
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,6 @@ func (record TransactionRecord) MarshalJSON() ([]byte, error) {
}
}
m["pendingAirdropRecords"] = pendingAirdropRecords
fmt.Println(m["pendingAirdropRecords"])

receiptBytes, err := record.Receipt.MarshalJSON()
if err != nil {
Expand Down

0 comments on commit c3b73b2

Please sign in to comment.