Skip to content

Commit

Permalink
Logs...
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan-Ethernal committed Aug 9, 2023
1 parent e4242e6 commit 2e991cd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions txrelayer/txrelayer.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,14 @@ func (t *TxRelayerImpl) sendTransactionLocked(txn *ethgo.Transaction, key ethgo.
if maxPriorityFee == nil {
// retrieve the max priority fee per gas
if maxPriorityFee, err = t.Client().Eth().MaxPriorityFeePerGas(); err != nil {
var out string
_ = t.Client().Call("eth_maxPriorityFeePerGas", &out)
fmt.Println("error occured. max priority fee raw", out)

Check failure on line 128 in txrelayer/txrelayer.go

View workflow job for this annotation

GitHub Actions / golangci_lint

`occured` is a misspelling of `occurred` (misspell)

Check failure on line 128 in txrelayer/txrelayer.go

View workflow job for this annotation

GitHub Actions / golangci_lint

`occured` is a misspelling of `occurred` (misspell)
return ethgo.ZeroHash, fmt.Errorf("failed to get max priority fee per gas: %w", err)

Check failure on line 129 in txrelayer/txrelayer.go

View workflow job for this annotation

GitHub Actions / golangci_lint

return with no blank line before (nlreturn)

Check failure on line 129 in txrelayer/txrelayer.go

View workflow job for this annotation

GitHub Actions / golangci_lint

return with no blank line before (nlreturn)
}

fmt.Println("max priority fee", maxPriorityFee)

txn.MaxPriorityFeePerGas = maxPriorityFee
}

Expand Down

0 comments on commit 2e991cd

Please sign in to comment.