You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the plugin performs an internal validation that the provided private key matches the deployed public key.
Source code: OpenZeppelinAccount, ArgentAccount
Since starknet-hardhat-plugin v0.7.0, it is a problem if the account contract hasn't yet been deployed (so there is no public key deployed to check against). When can this happen? Assume the following use-case:
constaccount=awaitstarknet.OpenZeppelinAccount.createAccount(...);console.log("Account address:",account.address);// you exit the script to fund the account
Then a new script is run which first tries to get the account:
constaccount=awaitstarknet.OpenZeppelinAccount.getAccountFromAddress(...);// FAILS with reporting an UNINITIALIZED_CONTRACT
constaccount=awaitstarknet.OpenZeppelinAccount.createAccount(...);awaityourSelectedWayOfWaiting();// fund during this stepawaitaccount.deployAccount(...);
2. Creating and deploying in separate executions
For this to work, you need to use the same private key and the same salt, e.g. via env vars (accessible with process.env).
When doing
the plugin performs an internal validation that the provided private key matches the deployed public key.
Source code: OpenZeppelinAccount, ArgentAccount
Since
starknet-hardhat-plugin
v0.7.0, it is a problem if the account contract hasn't yet been deployed (so there is no public key deployed to check against). When can this happen? Assume the following use-case:Then a new script is run which first tries to get the account:
Originally reported on Discord.
The text was updated successfully, but these errors were encountered: