-
Notifications
You must be signed in to change notification settings - Fork 12
is getSubState supposed to work ? #107
Comments
console.log(await deployed_contract.getState());
state = await deployed_contract.getSubState('_balance');
console.log({state}); dev testnet :
kaya on localhost:
|
GetSubState is not working. Help and PR appreciated! |
As I noticed that even getState returns the data in a different format than Testnet. |
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
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 |
deployed_contract.getState()
gives me a full list of contract states :but all calls to
getSubState
returnundefined
:The text was updated successfully, but these errors were encountered: