Coder Social home page Coder Social logo

Comments (7)

clacladev avatar clacladev commented on August 15, 2024 1

Thanks Fabian, but they suggested me it was a devnet issue https://discord.com/channels/793094838509764618/950372319119937606/978758555391897690

from starknet-devnet.

clacladev avatar clacladev commented on August 15, 2024 1

I've also not found any issue regarding this on neither starknet.js nor starknet-react repos

from starknet-devnet.

clacladev avatar clacladev commented on August 15, 2024 1

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.

FabijanC avatar FabijanC commented on August 15, 2024

This looks like a starknet-react issue. Have you tried searching or asking there? https://github.com/apibara/starknet-react/issues

from starknet-devnet.

FabijanC avatar FabijanC commented on August 15, 2024

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.

clacladev avatar clacladev commented on August 15, 2024

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.

FabijanC avatar FabijanC commented on August 15, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.