Skip to content

Commit

Permalink
tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
rianhughes committed Oct 4, 2023
1 parent 4367ddf commit c3bcd65
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions account/account.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package account
import (
"context"
"errors"
"fmt"
"time"

"github.com/NethermindEth/juno/core/felt"
Expand Down Expand Up @@ -302,11 +301,9 @@ func (account *Account) WaitForTransactionReceipt(ctx context.Context, transacti
for {
select {
case <-ctx.Done():
fmt.Println("-----------")
return nil, ctx.Err()
case <-t.C:
receipt, err := account.TransactionReceipt(ctx, transactionHash)
fmt.Println("===", receipt, err)
if err != nil {
if err.Error() == rpc.ErrHashNotFound.Error() {
continue
Expand Down

0 comments on commit c3bcd65

Please sign in to comment.