Skip to content

Commit

Permalink
removed unused block fields from formater
Browse files Browse the repository at this point in the history
  • Loading branch information
alejoacosta74 authored and rileystephens28 committed Feb 4, 2025
1 parent 7303c2c commit 14d22c5
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 15 deletions.
3 changes: 0 additions & 3 deletions src/_tests/integration/providerdata.integration.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -241,9 +241,6 @@ describe.skip('Test Provider Block operations', function () {
uncledEntropy: BigInt(rpcBlock.header.uncledEntropy),
utxoRoot: rpcBlock.header.utxoRoot,
exchangeRate: BigInt(rpcBlock.header.exchangeRate),
quaiToQi: BigInt(rpcBlock.header.quaiToQi),
qiToQuai: BigInt(rpcBlock.header.qiToQuai),
secondaryCoinbase: rpcBlock.header.secondaryCoinbase,
},
interlinkHashes: rpcBlock.interlinkHashes,
size: BigInt(rpcBlock.size),
Expand Down
3 changes: 0 additions & 3 deletions src/providers/format.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,10 +177,7 @@ const _formatHeader = object({
transactionsRoot: formatHash,
uncledEntropy: getBigInt,
utxoRoot: formatHash,
secondaryCoinbase: allowNull(getAddress),
exchangeRate: getBigInt,
quaiToQi: getBigInt,
qiToQuai: getBigInt,
});

const _formatUncle = object({
Expand Down
3 changes: 0 additions & 3 deletions src/providers/formatting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,6 @@ export interface BlockHeaderParams {
uncledEntropy: bigint;
utxoRoot: string;
exchangeRate: bigint;
quaiToQi: bigint;
qiToQuai: bigint;
secondaryCoinbase: string;
}

export interface UncleParams {
Expand Down
6 changes: 0 additions & 6 deletions src/providers/provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -474,9 +474,6 @@ export class BlockHeader implements BlockHeaderParams {
readonly uncledEntropy: bigint;
readonly utxoRoot!: string;
readonly exchangeRate!: bigint;
readonly quaiToQi!: bigint;
readonly qiToQuai!: bigint;
readonly secondaryCoinbase!: string;

constructor(params: BlockHeaderParams) {
this.baseFeePerGas = params.baseFeePerGas;
Expand Down Expand Up @@ -509,9 +506,6 @@ export class BlockHeader implements BlockHeaderParams {
this.uncledEntropy = params.uncledEntropy;
this.utxoRoot = params.utxoRoot;
this.exchangeRate = params.exchangeRate;
this.quaiToQi = params.quaiToQi;
this.qiToQuai = params.qiToQuai;
this.secondaryCoinbase = params.secondaryCoinbase;
}

toJSON(): BlockHeaderParams {
Expand Down

0 comments on commit 14d22c5

Please sign in to comment.