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

Commit 145f87c

Browse files
authored
Merge pull request metachris#5 from metachris/errors2
JSON-RPC error: wrapped in RelayErrorResponse
2 parents dd93a46 + 8e1c35b commit 145f87c

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)