Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Commit

Permalink
fix: allow mutating the blockhash in a deserialized tx
Browse files Browse the repository at this point in the history
  • Loading branch information
jstarry committed May 11, 2022
1 parent 6880098 commit 3f5a878
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions web3.js/src/transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,6 @@ export type NonceInformation = {
* @internal
*/
export interface TransactionJSON {
recentBlockhash: string | null;
feePayer: string | null;
nonceInfo: {
nonce: string;
Expand Down Expand Up @@ -224,7 +223,6 @@ export class Transaction {
*/
toJSON(): TransactionJSON {
return {
recentBlockhash: this.recentBlockhash || null,
feePayer: this.feePayer ? this.feePayer.toJSON() : null,
nonceInfo: this.nonceInfo
? {
Expand Down

0 comments on commit 3f5a878

Please sign in to comment.