Comments (7)
Thanks Fabian, but they suggested me it was a devnet issue https://discord.com/channels/793094838509764618/950372319119937606/978758555391897690
from starknet-devnet.
I've also not found any issue regarding this on neither starknet.js
nor starknet-react
repos
from starknet-devnet.
I noticed that the transactions where actually ACCEPTED_ON_L2. So after testing and debugging, it turns out I was only listening for the first transaction status update. If I "listened" for the next ones, I would also received ACCEPTED_ON_L2.
So, devnet and all the libraries are working as expected. It was my fault.
Thanks for the help anyway!
from starknet-devnet.
This looks like a starknet-react issue. Have you tried searching or asking there? https://github.com/apibara/starknet-react/issues
from starknet-devnet.
So, the issue is somehow related to useStarknetTransactionManager
? What is that / what does it do? Also, you mention receiving "transaction for the ACCEPTED_ON_L2
" and TRANSACTION_RECEIVED
transaction. Do you mean response? Also, later on you are mentioning events, are you really referring to events?
from starknet-devnet.
useStarknetTransactionManager
is simply an ReactJS function that calls a callback when there are updates regarding transactions started from the wallet.
So when I use it on alpha, I receive transaction with status like TRANSACTION_RECEIVED, PENDING, ACCEPTED_ON_L2
etc.
But when I use it on devnet, I only receive transaction with status TRANSACTION_RECEIVED
.
Why is this difference?
Here starknet.js
(which is what starknet-react
is built on top of) list of transaction statuses
https://github.com/0xs34n/starknet.js/blob/5374fdf676915d634775c7c072ea923ddaee2817/www/docs/API/provider.md#gettransactionstatusresponse
from starknet-devnet.
I am aware of the possible transaction statuses. Devnet creates all transactions with either REJECTED
or ACCEPTED_ON_L2
right away. Could that be causing any difference? Also, you can try checking the status using Starknet CLI (starknet tx_status --hash ...
) and seeing if if really has that status.
Were you able to use this in the past? Or did it start happening after a Devnet update? Also, you can try using older/newer Devnet versions.
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.