diff --git a/txrelayer/txrelayer.go b/txrelayer/txrelayer.go index d03f63843c..9517a65a99 100644 --- a/txrelayer/txrelayer.go +++ b/txrelayer/txrelayer.go @@ -187,9 +187,18 @@ func (t *TxRelayerImpl) sendTransactionLocked(txn *ethgo.Transaction, key ethgo. } if t.writer != nil { - _, _ = t.writer.Write([]byte( - fmt.Sprintf("[TxRelayer.SendTransaction]\nFrom = %s \nGas = %d \nGas Price = %d\n", - txn.From, txn.Gas, txn.GasPrice))) + var msg string + + if txn.Type == ethgo.TransactionDynamicFee { + msg = fmt.Sprintf("[TxRelayer.SendTransaction]\nFrom = %s\nGas = %d\n"+ + "Max Fee Per Gas = %d\nMax Priority Fee Per Gas = %d\n", + txn.From, txn.Gas, txn.MaxFeePerGas, txn.MaxPriorityFeePerGas) + } else { + msg = fmt.Sprintf("[TxRelayer.SendTransaction]\nFrom = %s\nGas = %d\nGas Price = %d\n", + txn.From, txn.Gas, txn.GasPrice) + } + + _, _ = t.writer.Write([]byte(msg)) } return t.client.Eth().SendRawTransaction(data)