Skip to content
This repository was archived by the owner on Oct 20, 2024. It is now read-only.

Commit 8e1c35b

Browse files
committed
JSON-RPC error: wrapped in RelayErrorResponse
1 parent dd93a46 commit 8e1c35b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flashbotsrpc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ func (rpc *FlashbotsRPC) CallWithFlashbotsSignature(method string, privKey *ecds
194194
}
195195

196196
if resp.Error != nil {
197-
return nil, *resp.Error
197+
return nil, fmt.Errorf("%w: %s", ErrRelayErrorResponse, (*resp).Error.Message)
198198
}
199199

200200
return resp.Result, nil

0 commit comments

Comments
 (0)