Comments (4)
getState
is working on kaya but getSubState
not and always just returns undefined
.
Even easier to replicate example:
console.log(await deployed_contract.getState());
state = await deployed_contract.getSubState('_balance');
console.log({state});
dev testnet :
{
"_balance": "0",
}
{ state: { _balance: '0' } }`
kaya on localhost:
{
"_balance": "0",
}
{ state: undefined }
from kaya.
GetSubState is not working. Help and PR appreciated!
from kaya.
As I noticed that even getState returns the data in a different format than Testnet.
I am wondering: (why) is kaya not using the same code base as Testnet and Mainnet?
Eventually the goal is to have a local Development net which behaves identical to the real networks. Of course it will be very difficult and time consuming to try to replicate the behaviour of the real networks ...
from kaya.
You're right, we are definitely thinking of reusing the codebase. Zilliqa's team has been working on this feature called "isolated server", which aims to promote reusability of the code for dApp developers.
The feature is pending approval to be merged to Zilliqa's codebase: Zilliqa/Zilliqa#1879
The setup instruction is attached here: https://github.com/Zilliqa/Zilliqa/blob/feature/kaya_binary/ISOLATED_SERVER_setup.md
You can give it a try - however, there are a few differences from kaya
- zilliqa's codebase can be rather verbose and may contain a lot more log information than you need.
- the memory consumption of this "isolated server" will be much larger than kaya-rpc
- certain users might find it hard to set up the isolated server
In the long run, we hope to actively maintain kaya-RPC as we believe it's useful for dApp developers. However, recently I've been caught up with many other priorities and I'm struggling to find time to maintain this kaya-RPC.
We will definitely appreciate if community members can make a pull request to make this kaya-rpc better
from kaya.
Related Issues (20)
- kaya on local blockchain : testblockchain.js => Blockchain error
- getState returns different format for Maps on Kaya than Testnet
- contentScript.js:23 Cross-Origin Read Blocking (CORB) blocked cross-origin response http://127.0.0.1:4200/ with MIME type application/json
- "GetTransaction" return incorrect error code when transaction is not found
- Implement new RPC Method - Get Contract Address from transaction hash
- Run SCILLA-CHECKER within Kaya RPC
- Use BIP-39 to generate new accounts
- New RPC Specs
- Add support for zilliqa-js 0.3.0
- is remote interpreter down ? HOT 1
- NPM Installation error with incompatible python vresions HOT 2
- Error after install kaya-cli as npm package
- Kaya-cli creating relative path ../data HOT 1
- -p port option does not change port
- Invalid Tx Json from example HOT 2
- Issue with Kaya-cli and ../data HOT 1
- npm install error in scrypt HOT 2
- Some Scilla tests don't work
- kaya-cli runtime error
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 kaya.