Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/hooks/useDeployedContractInfo.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
4 changes: 2 additions & 2 deletions docs/hooks/useScaffoldEventHistory.md
Original file line number Diff line number Diff line change
Expand Up @@ -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). |
Expand Down