Comments (9)
Regarding your original issue, did using the --no_wallet flag help? Or running unset STARKNET_WALLET?
Yes, that was it! Can you explain why I needed not to use a wallet?
The important thing to note is that your wallet uses your account, and your account is also a contract that has to be deployed.
So you could use the wallet in your case, but then the network you are interacting with (Devnet in this case), should have the wallet account deployed. You may have deployed your account at some point, but then you shut the Devnet instance down and the account was lost.
Anyway, if the function you are calling doesn't require any wallet/account verification, you can call it directly and not through a wallet/account (by specifying --no_wallet
)
I can see my transactions are not moving passed the "ACCEPTED_ON_L2" status. Is this because it is outside the scope of the devnet to actually communicate with Starkware's STARK prover?
That's right, Devnet is completely local. The furthest any transaction goes is getting included in the local list of blocks (each block having just one transcation).
from starknet-devnet.
Feel free to use my test gateway at http://52.179.101.122:5000
.
from starknet-devnet.
Hi, thanks for providing your gateway, pretty cool to be testing on something other than localhost.
I'm suprised that your starknet call
command works because it expects --feeder_gateway_url
to be provided and you are providing --gateway_url
.
Does your contract do any calling by proxy? Also, is your STARKNET_WALLET
environment variable set by any chance? If so, you are implicitly running your invokes/calls through an account that was probably deployed either on Alpha goerli testnet or in a previous devnet session. either unset it or use the --no_wallet
flag with Starknet CLI commands.
from starknet-devnet.
Also, if I may guess, you aren't using the latest version of devnet. The latest version (0.1.17) offers dumping/loading with which you can preserve a devnet instance set up with an account and load it whenever you want.
from starknet-devnet.
Hi, thanks for providing your gateway, pretty cool to be testing on something other than localhost.
I'm suprised that your
starknet call
command works because it expects--feeder_gateway_url
to be provided and you are providing--gateway_url
.Does your contract do any calling by proxy? Also, is your
STARKNET_WALLET
environment variable set by any chance? If so, you are implicitly running your invokes/calls through an account that was probably deployed either on Alpha goerli testnet or in a previous devnet session. either unset it or use the--no_wallet
flag with Starknet CLI commands.
I got from the naming and from my tests that ---gateway_url
was used to write (deploy and call contracts) while --feeder_gateway_url
was used when reading the state (tx_status
).
My contract is the example one from Starknet's docs. As to the wallet, I'm following these guidelines (alpha-goerli network and OpenZeppelin account).
from starknet-devnet.
Also, if I may guess, you aren't using the latest version of devnet. The latest version (0.1.17) offers dumping/loading with which you can preserve a devnet instance set up with an account and load it whenever you want.
I'm using docker. I will the latest image.
from starknet-devnet.
I got from the naming and from my tests that
---gateway_url
was used to write (deploy and call contracts) while--feeder_gateway_url
was used when reading the state (tx_status
).
Yes, and call
doesn't write, it only reads, that's why it requires --feeder_gateway_url
.
My contract is the example one from Starknet's docs. As to the wallet, I'm following these guidelines (alpha-goerli network and OpenZeppelin account).
Regarding your original issue, did using the --no_wallet
flag help? Or running unset STARKNET_WALLET
?
from starknet-devnet.
Regarding your original issue, did using the --no_wallet flag help? Or running unset STARKNET_WALLET?
Yes, that was it! Can you explain why I needed not to use a wallet?
from starknet-devnet.
I can see my transactions are not moving passed the "ACCEPTED_ON_L2" status. Is this because it is outside the scope of the devnet to actually communicate with Starkware's STARK prover?
from starknet-devnet.
Related Issues (20)
- starknet-devnet 0.5.2 fails to execute starknet-sierra-compile when using poetry HOT 2
- Refactor recompiler selection to improve error reporting
- JSON-RPC API trace methods are missing HOT 4
- `estimate_fee` transaction gets rejected with `Declare`
- ValueError when calling postman flush HOT 1
- Adapt to cairo-lang/Starknet 0.11.2
- FELT pattern from starknet-spec could allow value > prime HOT 1
- Add `estimateMessageFee` endpoint to the JSON-RPC API. HOT 1
- Mainnet & Devnet differences, sequencer method `get_full_contract` & `get_class_by_hash` should return abi property of type string HOT 2
- Fix calculate_traces_and_fees
- Make cairo compiler flags customizable
- Incorrect format of `FunctionInvocation` in `starknet_simulateTransaction` response HOT 2
- Forked devnet incompatible with Cairo 1 contracts deployed on origin HOT 12
- Debug printing in Cairo 1 should be documented
- Support Starknet / cairo-lang 0.12
- In blocks-on-demand mode, all transactions have transaction_index 0
- Unable to fork alpha-goerli on devnet HOT 14
- Adaptation to 0.12.2
- JSON-RPC: starknet_simulateTransactions should be supported
- Testnet 2 functionality can be removed
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from starknet-devnet.