• Conner Fromknecht's avatar
    feat: txmgr return ErrReverted if confirmed tx reverts · 6856b215
    Conner Fromknecht authored
    Currently the txmgr treats confirmation of a transaction as successful
    if it achieves the proper confirmation depth, however it fails to
    acknowledge the possibility that the transaction reverts. Thus to an
    external caller the transaction silently succeeds.
    
    This commit now inspects the receipt and returns an ErrReverted failure
    in the event that receipt.Status is not 1. This allows higher level
    applications to add logging/telemetry or take action on these events.
    6856b215
service.go 7.21 KB