Skip to content

Commit

Permalink
keep #startBlock when creating a TransactionResponse from a Transacti…
Browse files Browse the repository at this point in the history
…onResponse ethers-io#4875
  • Loading branch information
PierreJeanjacquot committed Oct 31, 2024
1 parent 9e7e7f3 commit 35c4ebb
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib.commonjs/providers/provider.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib.commonjs/providers/provider.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib.esm/providers/provider.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib.esm/providers/provider.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src.ts/providers/provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1410,7 +1410,7 @@ export class TransactionResponse implements TransactionLike<string>, Transaction
this.accessList = (tx.accessList != null) ? tx.accessList: null;
this.blobVersionedHashes = (tx.blobVersionedHashes != null) ? tx.blobVersionedHashes: null;

this.#startBlock = -1;
this.#startBlock = (tx instanceof TransactionResponse) ? tx.#startBlock : -1;
}

/**
Expand Down

0 comments on commit 35c4ebb

Please sign in to comment.