Skip to content

Commit a671272

Browse files
committed
return signTx
1 parent afc2067 commit a671272

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pkg/tx/transfer.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,11 @@ func WaitForTransactionConfirmation(client *ethclient.Client, txHash common.Hash
109109

110110
// 设置轮询间隔
111111

112-
fmt.Println("waiting for tx confirmed")
113112
for {
114113
receipt, err = client.TransactionReceipt(ctx, txHash)
115114
if err != nil {
116115
if err == ethereum.NotFound {
117-
// 如果收据未找到,继续轮询
116+
fmt.Println("waiting for confirmed tx:", txHash.String())
118117
time.Sleep(time.Second)
119118
continue
120119
}

0 commit comments

Comments
 (0)