Skip to content

Commit

Permalink
fix nil panic
Browse files Browse the repository at this point in the history
  • Loading branch information
TymKh committed Oct 12, 2023
1 parent 7663050 commit 829aa2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/request_processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,8 @@ func (r *RpcRequest) sendTxToRelay() {
}

sendPrivateTxArgs := types.SendPrivateTxRequestWithPreferences{}
sendPrivateTxArgs.Tx = r.rawTxHex
sendPrivateTxArgs.Preferences = &r.urlParams.pref
if r.urlParams.fast {
if len(sendPrivateTxArgs.Preferences.Validity.Refund) == 0 {
addr, err := GetSenderAddressFromTx(r.tx)
Expand All @@ -269,8 +271,6 @@ func (r *RpcRequest) sendTxToRelay() {
}
}
}
sendPrivateTxArgs.Tx = r.rawTxHex
sendPrivateTxArgs.Preferences = &r.urlParams.pref

fbRpc := flashbotsrpc.New(r.relayUrl, func(rpc *flashbotsrpc.FlashbotsRPC) {
if r.urlParams.originId != "" {
Expand Down

0 comments on commit 829aa2e

Please sign in to comment.