Skip to content

Commit

Permalink
Handle inner TokenHandlingError errors
Browse files Browse the repository at this point in the history
  • Loading branch information
RensR committed Sep 11, 2023
1 parent f778658 commit ec73ac2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/scripts/ccip/revert-reason/handler/reason.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func DecodeErrorStringFromABI(errorString string) (string, error) {
}

// If exec error, the actual error is within the revert reason
if errorName == "ExecutionError" || errorName == "TokenRateLimitError" {
if errorName == "ExecutionError" || errorName == "TokenRateLimitError" || errorName == "TokenHandlingError" {
// Get the inner type, which is `bytes`
fmt.Printf("Error is \"%v\" inner error: ", errorName)
errorBytes := v.([]interface{})[0].([]byte)
Expand Down

0 comments on commit ec73ac2

Please sign in to comment.