Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -219,4 +219,11 @@ default Optional<? extends Quantity> getMaxFeePerBlobGas() {
* @return the encoded transaction as Bytes
*/
Bytes encoded();

/**
* Returns the size in bytes of the encoded transaction.
*
* @return the size in bytes of the encoded transaction.
*/
int getSize();
}
Original file line number Diff line number Diff line change
Expand Up @@ -670,6 +670,7 @@ public Hash getHash() {
*
* @return the size in bytes of the encoded transaction.
*/
@Override
public int getSize() {
if (size == -1) {
memoizeHashAndSize();
Expand Down