File tree Expand file tree Collapse file tree 1 file changed +18
-2
lines changed
ethereum/core/src/main/java/org/hyperledger/besu/ethereum/core Expand file tree Collapse file tree 1 file changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -1091,10 +1091,26 @@ public String toString() {
10911091 sb .append ("value=" ).append (getValue ()).append (", " );
10921092 sb .append ("sig=" ).append (getSignature ()).append (", " );
10931093 if (chainId .isPresent ()) sb .append ("chainId=" ).append (getChainId ().get ()).append (", " );
1094- sb .append ("payload=" ).append (getPayload ());
10951094 if (transactionType .equals (TransactionType .ACCESS_LIST )) {
1096- sb .append (", " ).append ("accessList=" ).append (maybeAccessList );
1095+ sb .append ("accessList=" ).append (maybeAccessList ).append (", " );
1096+ }
1097+ if (versionedHashes .isPresent ()) {
1098+ final List <VersionedHash > vhs = versionedHashes .get ();
1099+ if (!vhs .isEmpty ()) {
1100+ sb .append ("versionedHashes=[" );
1101+ sb .append (
1102+ vhs .get (0 )
1103+ .toString ()); // can't be empty if present, as this is checked in the constructor
1104+ for (int i = 1 ; i < vhs .size (); i ++) {
1105+ sb .append (", " ).append (vhs .get (i ).toString ());
1106+ }
1107+ sb .append ("], " );
1108+ }
10971109 }
1110+ if (transactionType .supportsBlob () && this .blobsWithCommitments .isPresent ()) {
1111+ sb .append ("numberOfBlobs=" ).append (blobsWithCommitments .get ().getBlobs ().size ()).append (", " );
1112+ }
1113+ sb .append ("payload=" ).append (getPayload ());
10981114 return sb .append ("}" ).toString ();
10991115 }
11001116
You can’t perform that action at this time.
0 commit comments