Skip to content

Fix 575 #590

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

Closed
wants to merge 5 commits into from
Closed

Fix 575 #590

wants to merge 5 commits into from

Conversation

Kingsuite
Copy link
Contributor

Implement use Scaffold multiread hook

Fixes #575

Types of change

  • Feature
  • Bug
  • Enhancement

Comments (optional)

Copy link
Collaborator

@metalboyrick metalboyrick left a comment

Choose a reason for hiding this comment

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

GM Thanks for the PR! Comments down below

On the PR:

  • Please rebase your branch to the latest develop
  • please put the appropriate title (e.g. feat: implement...)
  • Please re-read the issue and try to understand the intention behind the task, feel free to consult us if you have any questions

Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't think you need to implement a contract

Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't think you need to implement a contract

Comment on lines +99 to +108
const multicallResult = useReadContract({
functionName: "call_contracts",
address: multicallContract?.address,
abi: multicallContract?.abi,
watch: true,
args: [contracts, entryPointSelectors, calldata],
enabled: allContractsReady && contracts.length > 0,
blockIdentifier: "pending" as BlockNumber,
...readConfig,
});
Copy link
Collaborator

Choose a reason for hiding this comment

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

We are not supposed to call a particular contract here, you have to use starknet.js or starknet-react to implement a hook that can read multiple contracts at once.

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