Skip to content

Commit

Permalink
Merge branch '4.x' into feat/docs/plugin-middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
danforbes authored Jul 22, 2024
2 parents c369c32 + 5f6deeb commit eb29499
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
3 changes: 2 additions & 1 deletion packages/web3-eth/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -266,4 +266,5 @@ Documentation:

### Fixed

- Adds transaction property to be an empty list rather than undefined when no transactions are included in the block (#7151)
- Adds transaction property to be an empty list rather than undefined when no transactions are included in the block (#7151)
- Change method `getTransactionReceipt` to not be casted as `TransactionReceipt` to give proper return type (#7159)
3 changes: 1 addition & 2 deletions packages/web3-eth/src/rpc_method_wrappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -521,14 +521,13 @@ export async function getTransactionReceipt<ReturnFormat extends DataFormat>(
}

}

return isNullish(response)
? response
: (format(
transactionReceiptSchema,
response as unknown as TransactionReceipt,
returnFormat ?? web3Context.defaultReturnFormat,
) as TransactionReceipt);
));
}

/**
Expand Down
6 changes: 0 additions & 6 deletions packages/web3/src/web3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,12 +137,6 @@ export class Web3<
optionsOrContextOrReturnFormat?: ContractInitOptions,
contextOrReturnFormat?: Web3Context | DataFormat,
);
public constructor(
jsonInterface: Abi,
addressOrOptionsOrContext?: Address | ContractInitOptions,
optionsOrContextOrReturnFormat?: ContractInitOptions,
contextOrReturnFormat?: Web3Context | DataFormat,
);
public constructor(
jsonInterface: Abi,
addressOrOptionsOrContext?: Address | ContractInitOptions,
Expand Down

0 comments on commit eb29499

Please sign in to comment.