Skip to content

Commit

Permalink
Don't panic if txm fetches the wrong receipt type
Browse files Browse the repository at this point in the history
  • Loading branch information
archseer committed Jun 22, 2023
1 parent baa6c21 commit 3a6e201
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion relayer/pkg/chainlink/txm/txm.go
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,8 @@ func (txm *starktxm) confirmLoop() {
}
receipt, ok := response.(caigorpc.InvokeTransactionReceipt)
if !ok {
panic(fmt.Sprintf("wrong receipt type: %v", reflect.TypeOf(response)))
txm.lggr.Errorw("wrong receipt type", "type", reflect.TypeOf(response))
continue
}

status := receipt.Status
Expand Down

0 comments on commit 3a6e201

Please sign in to comment.