Problem in performing a contract write transaction after deploying a contract #896
Unanswered
apoorvcodes
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We're maintaining an app registry to hold all the contracts deployed by a specific user.
Our workflow looks like:
We have our own deploy contract hook (
useDeployContract), that deploys the contract (using async) and returns the address,The implementation is as so:
Then, we have a state to hold the deployed contract address, and it's updated after calling the
useDeployContract, but the default value isundefinedand theprepareContractWriteholds the value.Here, the config is never created, and isn't actually run by the
useContractWrite. This dependency doesn't let executing the transaction to add to registry just after deployment by taking the user transaction approval.Any idea on how I can achieve this and perform multiple transactions/reads at a time one by one, in a specific sequence.
(CC: @jxom @janaSunrise)
Beta Was this translation helpful? Give feedback.
All reactions