Comments (10)
Okay now it works! I wasn't running them in the same directory. Thanks!
from nile.
Thanks for raising this! I'm on macOS but haven't stumbled upon this before. Would you be interested in opening a PR adding the feature @kanishkatn?
from nile.
@martriay Yes, would love to!
from nile.
Just FYI, there was a post on Reddit about it some time ago. Seems the port squatting can be disabled via System preferences.
from nile.
@Yijia-Chen hey there, bear in mind that merging it doesn't automatically makes it available since we'd have to also release a new version of nile. Until we release it, I suggest you clone the PR (or main
when merged) and install it locally to use it today, now.
from nile.
At the moment it's not possible to change the host or port, we should do that.
Note: starknet devnet already supports this, we need to pass the host and port flags to it.
from nile.
Second this issue. #46 seems to have a good solution already; can someone please merge?
from nile.
I installed the newest commit including #46 using python -m pip install .
in the project directory, and nile node
now has the flag --port
which works on 5001. However, nile deploy contract --alias contract_name
still has no --port
option, and when I run it after nile node
, it gives me the error that port 5000 is occupied. Does the local nile deploy
also use port 5000? Or am I doing something wrong here?
The detailed error message is as follows: subprocess.CalledProcessError: Command '['starknet', 'deploy', '--contract', 'artifacts/contract.json', '--gateway_url=http://localhost:5000/']' returned non-zero exit status 1.
I am on macOS Monterey Version 12.0.1.
Can someone please help?
from nile.
Hi @Yijia-Chen , normally when you run nile node --port 5001
you'll have a node.json
file with the corresponding gateway URL. No need to add the port when executing nile deploy
as it will target whatever is saved in this file. However you do need to run it in the same directory when you did nile node
, could you try again and see if it works on your end?
from nile.
I'm closing this issue since the feature is already in place.
from nile.
Related Issues (20)
- artifacts/ folder missing in base project .gitignore
- nile deploy command doesn't accept hex arguments in calldata
- Handle Exceptions in CLI scope
- update goerli2 chain id
- Registering duplicate deployment address will delete deployment from json HOT 2
- Remove accounts.json from nile init (never used)
- Add tests for accounts.py
- nile setup failed HOT 1
- Add nile utils documentation to the docsite HOT 1
- Declaring a contract causes "Requested contract address is not deployed" HOT 2
- Refactor `call_or_invoke` method to `call` HOT 1
- Update docs from transaction flow refactor
- `nile run` doesn't bubble up script exceptions
- Support `EthAccount` signer and account type
- add transaction API/lifecycle to docs
- Declare transaction fails when the declarations file contains an empty line
- Increase max_fee above estimated amount
- Add EthAccount support as plugin
- Bump cairo-lang dependency to 0.11
- Does it support deploying contract with arguments in the latest version? And then, how to do it? HOT 8
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 nile.