File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
internal/service/api/handlers Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,6 @@ import (
29
29
)
30
30
31
31
const (
32
- OPERATION resources.ResourceType = "operation"
33
32
TRANSACTION resources.ResourceType = "transaction"
34
33
)
35
34
@@ -120,7 +119,7 @@ func VoteV2(w http.ResponseWriter, r *http.Request) {
120
119
log .WithError (err ).Error ("Failed to configure gas and gasPrice" )
121
120
// `errors.Is` is not working for rpc errors, they passed as a string without additional wrapping
122
121
// because of this we operate with raw strings
123
- if strings .Contains (err .Error (), vm .ErrExecutionReverted .Error ()) {
122
+ if strings .Contains (strings . ToLower ( err .Error ()), strings . ToLower ( vm .ErrExecutionReverted .Error () )) {
124
123
errParts := strings .Split (err .Error (), ":" )
125
124
contractName := strings .TrimSpace (errParts [len (errParts )- 2 ])
126
125
errMsg := errors .New (strings .TrimSpace (errParts [len (errParts )- 1 ]))
You can’t perform that action at this time.
0 commit comments