Add missing error handling

This commit is contained in:
Eduard S
2020-09-30 11:58:31 +02:00
parent 8451b92295
commit ca3ae28f46
4 changed files with 21 additions and 8 deletions

View File

@@ -30,6 +30,9 @@ var (
ErrReceiptStatusFailed = fmt.Errorf("receipt status is failed")
// ErrReceiptNotReceived is used when unable to retrieve a transaction
ErrReceiptNotReceived = fmt.Errorf("receipt not available")
// ErrBlockHashMismatchEvent is used when there's a block hash mismatch
// beetween different events of the same block
ErrBlockHashMismatchEvent = fmt.Errorf("block hash mismatch in event log")
)
const (