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

ReferenceError: _entries is not defined at bond issues on bond contract #7

Closed
Rahul1297 opened this issue May 24, 2021 · 6 comments
Closed
Assignees

Comments

@Rahul1297
Copy link

Rahul1297 commented May 24, 2021

getBondContract().getBondIssues()

getBondContract().getBondPurchases()

screenshot_20210524_212048

@kallolborah
Copy link
Member

@Rahul1297 @vshall20
I checked these function calls - getBondIssues() and getBondPurchases() - they are not throwing any errors - look at last test case#10 here.

Please note that these functions are returning two arrays each - an array of bond addresses, and an array of uint256 numbers. The address arrays returned are - addresses of bonds issued (for the getBondIssues function) and address of bonds purchased (for the getBondPurchases function). The uint256 number arrays returned are - amount of bond issued (for the getBondIssues function) and the amount of bond purchased (for the getBondPurchases function).

Are you sure you are reading the responses correctly ? I saw one post here that talk about array returns in web3.

@Rahul1297
Copy link
Author

@kallolborah its not going to success(then)
its going to catch(error) and giving reference error for entries
So there is no any issue in reading the response

@kallolborah
Copy link
Member

@Rahul1297 its working in my test case. Did you check that ?

Can you also add your code to read arrays returned by each call ?

I have also redeployed the cash and bond contracts - please check here. I will add the accounts contract addresses after I am done checking with your ledger related gas issue.

@vshall20

@Rahul1297
Copy link
Author

Rahul1297 commented May 31, 2021

@kallolborah now getting this error

getBondContract().getBondIssues()
getBondContract().getBondPurchases()

image

@kallolborah
Copy link
Member

@Rahul1297 I can not comment unless you put your code here. Pls format the code properly, otherwise its hard to read.

@Rahul1297
Copy link
Author

@kallolborah see at the top I have given you the code

getBondContract().getBondIssues()
getBondContract().getBondPurchases()

I'm just calling this sdk on change of select dropdown

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