diff --git a/docs/hooks/useDeployedContractInfo.md b/docs/hooks/useDeployedContractInfo.md index 2e4fd7a..ac6e893 100644 --- a/docs/hooks/useDeployedContractInfo.md +++ b/docs/hooks/useDeployedContractInfo.md @@ -21,4 +21,4 @@ This example retrieves the details of the deployed contract with the specified n ### Return Value -- `data`: Object containing `address` and `abi` of contract. +- `data`: Object containing `address`, `abi` and `deployedOnBlock` of the contract. diff --git a/docs/hooks/useScaffoldEventHistory.md b/docs/hooks/useScaffoldEventHistory.md index 07380cf..1526bbe 100644 --- a/docs/hooks/useScaffoldEventHistory.md +++ b/docs/hooks/useScaffoldEventHistory.md @@ -31,8 +31,8 @@ This example retrieves the historical event logs for the `GreetingChange` event | :----------------------------- | :-------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | **contractName** | `string` | Name of the contract to read from. | | **eventName** | `string` | Name of the event to read. | -| **fromBlock** | `bigint` | Block number from which to start reading events. | -| **toBlock** | `bigint` | block number to stop reading events at (if not provided, reads until current block) | +| **fromBlock** (optional) | `bigint` | Block number from which to start reading events (defaults to `deployedOnBlock` in deployedContracts.ts if set for contract, otherwise defaults to 0). | +| **toBlock** (optional) | `bigint` | Block number to stop reading events at (if not provided, reads until current block). | | **filters** (optional) | `object` | Apply filters to the event based on **indexed** parameter names and values `{ [parameterName]: value }`. | | **blockData** (optional) | `boolean` | If set to true it will return the block data for each event (default: false). | | **transactionData** (optional) | `boolean` | If set to true it will return the transaction data for each event (default: false). |