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
{{ message }}
This repository has been archived by the owner on Dec 1, 2023. It is now read-only.
I noticed that I cannot setup an account using setup due to make setup run declare first if needed #299, because the Account contract is not declared yet. So instead, I created a script with the following:
and ran that script with nile run <script>
4. Try to declare the contract contract with nile declare PRIVATE_KEY contract
5. The following error occurs:
🚀 Declaring contract
⏳ Successfully sent declaration of contract as 0x399998c787e0a063c3ac1d2abac084dcbe09954e3b156d53a8c43a02aa27d35
🧾 Transaction hash: 0x7217575b1175f78ff6201490887019448f5af5e20715e3513aef86d4d168112
📦 Registering 0x399998c787e0a063c3ac1d2abac084dcbe09954e3b156d53a8c43a02aa27d35 in localhost.declarations.txt
⏳ Querying the network for transaction status...
❌ Transaction status: REJECTED
🧾 Found contracts: ['0x01de4967d751b8f23da1129659357191f634c3d451a235d0dd5b2bcb9c7b1ae5:/Users/eric/git/nileproj4/env/lib/python3.9/site-packages/nile/artifacts/Account.json']
⏳ Querying the network with identified contracts...
🧾 Error message:
Requested contract address 0x1de4967d751b8f23da1129659357191f634c3d451a235d0dd5b2bcb9c7b1ae5 is not deployed.
Note that the error message's address 0x1de4967d751b8f23da1129659357191f634c3d451a235d0dd5b2bcb9c7b1ae5 is the same as the account address 0x01de4967d751b8f23da1129659357191f634c3d451a235d0dd5b2bcb9c7b1ae5 but missing a leading 0.
thanks for reporting this. the devnet is supposed to come with the latest Account interface already declared, maybe they haven't updated it yet.
what happened here is that since the account is not declared, it cannot be deployed nor used for nile functions (nile declare ...). but the real problem is that the deployment process is not properly catching this and registering the account nevertheless. i think this should be resolved with/immediately after the refactor in #320 which will provide a better interface to transaction statuses, including failure.
what you can do in the meantime is to use predeployed accounts:
nile compile
setup
due to makesetup
rundeclare
first if needed #299, because theAccount
contract is not declared yet. So instead, I created a script with the following:and ran that script with
nile run <script>
4. Try to declare the
contract
contract withnile declare PRIVATE_KEY contract
5. The following error occurs:
Note that the error message's address
0x1de4967d751b8f23da1129659357191f634c3d451a235d0dd5b2bcb9c7b1ae5
is the same as the account address0x01de4967d751b8f23da1129659357191f634c3d451a235d0dd5b2bcb9c7b1ae5
but missing a leading 0.Additional info:
localhost.accounts.json contains:
localhost.deployments.txt contains:
The text was updated successfully, but these errors were encountered: