Skip to content

Commit cdca210

Browse files
committed
bug fixed
1 parent b84bf1e commit cdca210

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

etherspace-java/src/main/java/cc/etherspace/TransactionHash.kt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package cc.etherspace
22

3-
import cc.etherspace.EtherSpace.Companion.GET_TRANSACTION_RECEIPT_POLLING_ATTEMPTS
43
import kotlinx.coroutines.experimental.delay
54
import java.io.IOException
65

@@ -13,8 +12,12 @@ data class TransactionHash(private val web3: Web3,
1312
if (!transactionReceipt.success) throw TransactionFailedException(transactionReceipt)
1413
return transactionReceipt
1514
}
16-
delay(GET_TRANSACTION_RECEIPT_POLLING_ATTEMPTS)
15+
delay(EtherSpace.GET_TRANSACTION_RECEIPT_POLLING_INTERVAL_IN_MS)
1716
}
1817
throw IOException("transactionTimeout:transactionHash=$this")
1918
}
19+
20+
override fun toString(): String {
21+
return "TransactionHash(hash='$hash')"
22+
}
2023
}

0 commit comments

Comments
 (0)