Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

what's wrong? #7

Open
CCColby opened this issue Jun 30, 2018 · 6 comments
Open

what's wrong? #7

CCColby opened this issue Jun 30, 2018 · 6 comments

Comments

@CCColby
Copy link

CCColby commented Jun 30, 2018

{"result":{"balance":"0","nonce":"0","type":87}}
{'result': {'type': 87, 'nonce': '0', 'balance': '0'}}
{"error":"cannot found contract account in storage please check contract address is valid or deploy is success"}

@yupnano
Copy link
Contributor

yupnano commented Jun 30, 2018

please make sure where is your smart-contract is deployed: mainnet or testnet?

@yupnano yupnano changed the title what's wrong???? what's wrong? Jun 30, 2018
@CCColby
Copy link
Author

CCColby commented Jun 30, 2018

>>> from nebpysdk.src.client.Neb import Neb
>>> net = Neb('https://mainnet.nebulas.io')
>>> from wakuang/config import ConfigOne as conf
  File "<stdin>", line 1
    from wakuang/config import ConfigOne as conf
                ^
SyntaxError: invalid syntax
>>> from config import ConfigOne as conf
>>> net.url
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'Neb' object has no attribute 'url'
>>> net
<nebpysdk.src.client.Neb.Neb object at 0x7f31071dd710>
>>> dir(net)
['__class__', '__delattr__', '__dict__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__gt__', '__hash__', '__init__', '__le__', '__lt__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', 'admin', 'api', 'set_request']
>>> 
>>> dir(net.api)
['__class__', '__delattr__', '__dict__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__gt__', '__hash__', '__init__', '__le__', '__lt__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', '_api_version', '_host', '_path', 'call', 'create_url', 'estimateGas', 'gasPrice', 'getAccountState', 'getBlockByHash', 'getBlockByHeight', 'getDynasty', 'getEventsByHash', 'getNebState', 'getTransactionByContract', 'getTransactionReceipt', 'latestIrreversibleBlock', 'sendRawTransaction', 'send_request', 'set_request', 'subscribe']
>>> net.api._host
'https://testnet.nebulas.io'

@CCColby
Copy link
Author

CCColby commented Jun 30, 2018

new version has solve this problem?

@CCColby
Copy link
Author

CCColby commented Jun 30, 2018

also,,,,,chain_id == 1101 is invalid???
thanks .........

@CCColby
Copy link
Author

CCColby commented Jun 30, 2018

i can't change chain_id
how to do it????

@yupnano
Copy link
Contributor

yupnano commented Jul 2, 2018

For mainnet, chain_id = 1
For testnet, chain_id = 1001

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants