From 3f5a878ec94d139ef676a0d5e9bb2c07be663a90 Mon Sep 17 00:00:00 2001 From: Justin Starry Date: Thu, 12 May 2022 01:20:14 +0800 Subject: [PATCH] fix: allow mutating the blockhash in a deserialized tx --- web3.js/src/transaction.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/web3.js/src/transaction.ts b/web3.js/src/transaction.ts index f8466cdf647eca..be7d0816b36559 100644 --- a/web3.js/src/transaction.ts +++ b/web3.js/src/transaction.ts @@ -151,7 +151,6 @@ export type NonceInformation = { * @internal */ export interface TransactionJSON { - recentBlockhash: string | null; feePayer: string | null; nonceInfo: { nonce: string; @@ -224,7 +223,6 @@ export class Transaction { */ toJSON(): TransactionJSON { return { - recentBlockhash: this.recentBlockhash || null, feePayer: this.feePayer ? this.feePayer.toJSON() : null, nonceInfo: this.nonceInfo ? {