Skip to content

Commit

Permalink
use the rlp when it is available
Browse files Browse the repository at this point in the history
  • Loading branch information
pinges committed Sep 20, 2024
1 parent ce705b6 commit 7f23370
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,11 @@ void writeTo(final RLPOutput rlpOutput, final boolean withRevertReason, final bo

public void writeToForReceiptTrie(
final RLPOutput rlpOutput, final boolean withRevertReason, final boolean compacted) {
if (rlp != null) {
rlpOutput.writeBytes(rlp);
return;
}

if (!transactionType.equals(TransactionType.FRONTIER)) {
rlpOutput.writeIntScalar(transactionType.getSerializedType());
}
Expand Down

0 comments on commit 7f23370

Please sign in to comment.