Coder Social home page Coder Social logo

Comments (9)

FabijanC avatar FabijanC commented on August 15, 2024 1

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.

sebastiendan avatar sebastiendan commented on August 15, 2024

Feel free to use my test gateway at http://52.179.101.122:5000.

from starknet-devnet.

FabijanC avatar FabijanC commented on August 15, 2024

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.

FabijanC avatar FabijanC commented on August 15, 2024

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.

sebastiendan avatar sebastiendan commented on August 15, 2024

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.

sebastiendan avatar sebastiendan commented on August 15, 2024

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.

FabijanC avatar FabijanC commented on August 15, 2024

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.

sebastiendan avatar sebastiendan commented on August 15, 2024

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.

sebastiendan avatar sebastiendan commented on August 15, 2024

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)

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.