Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get Block Utility Function #97

Merged
merged 7 commits into from
May 3, 2022
Merged

Get Block Utility Function #97

merged 7 commits into from
May 3, 2022

Conversation

Nathan-SL
Copy link
Contributor

@Nathan-SL Nathan-SL commented Apr 22, 2022

Usage related changes

  • Implement getBlock utility function for the starknet object
    • Accepts optional identifier object containing optional properties blockHash and blockNumber
  • Update the error message to be more descriptive when missing contracts during a test in the example repo.

Development related changes

  • None

Checklist:

  • I have formatted the code
  • I have performed a self-review of the code
  • I have rebased to the base branch
  • I have documented the changes
  • I have updated the tests
  • I have created a PR to the plugin branch of starknet-hardhat-example.

- Both params can be optional
- Change contractPath to metadataSearchTarget in plugin error
- Remove trailing comma
- Change Object[] to Record<string, unknown>
src/extend-utils.ts Outdated Show resolved Hide resolved
src/index.ts Outdated Show resolved Hide resolved
src/starknet-wrappers.ts Outdated Show resolved Hide resolved
Copy link
Collaborator

@FabijanC FabijanC left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, update the PR description to reflect the new changes.

src/type-extensions.ts Outdated Show resolved Hide resolved
@FabijanC FabijanC self-requested a review May 3, 2022 09:43
@FabijanC FabijanC merged commit 443458f into master May 3, 2022
@FabijanC FabijanC deleted the feature/get-block branch May 3, 2022 10:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants