Skip to content

Commit

Permalink
remove prints and fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
cicr99 committed Oct 10, 2023
1 parent bdaa789 commit b174809
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
9 changes: 1 addition & 8 deletions account/account.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ package account

import (
"context"
"encoding/json"
"errors"
"fmt"
"time"

"github.com/NethermindEth/juno/core/felt"
Expand Down Expand Up @@ -453,7 +451,7 @@ func FmtCalldataCairo0(fnCalls []rpc.FunctionCall) []*felt.Felt {
}

/*
Formats the call data for Cairo 1 contracs
Formats the call data for Cairo 2 contracs
*/
func FmtCalldataCairo2(fnCalls []rpc.FunctionCall) []*felt.Felt {
execCallData := []*felt.Felt{}
Expand All @@ -475,8 +473,3 @@ func FmtCalldataCairo2(fnCalls []rpc.FunctionCall) []*felt.Felt {

return execCallData
}

func PrintTxAsJson(tx any) {
qwe, err := json.MarshalIndent(tx, "", "")
fmt.Println(string(qwe), err)
}
1 change: 0 additions & 1 deletion account/account_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,6 @@ func TestAddInvoke(t *testing.T) {
require.NoError(t, err)

resp, err := acnt.AddInvokeTransaction(context.Background(), test.InvokeTx)
fmt.Println(resp, err)
if err != nil {
require.Equal(t, err.Error(), test.ExpectedError.Error())
require.Nil(t, resp)
Expand Down

0 comments on commit b174809

Please sign in to comment.