algosigner-dapp-example icon indicating copy to clipboard operation
algosigner-dapp-example copied to clipboard

Add Examples for Assets Transfer and Close with send Remainder

Open janmarcano opened this issue 5 years ago • 0 comments

janmarcano avatar Nov 17 '20 16:11 janmarcano

@j-mars I think it might be because you're trying to get a thread that doesn't yet exist. You need to first create the same space and join the same thread from the box instance methods (after opening box) const space = await box.openSpace(spaceName) then space.joinThread(threadName, opts), before you can fetch it through the public api, though I need to double check whether that is the error message that returns in this error case

oznekenzo avatar Sep 12 '19 15:09 oznekenzo

Hi @oznekenzo, thanks for the answer. I noticed that you have in 3box-dapp commented the line

  // this.props.getMyFollowing(); // eslint-disable-line

in App.jsx

which would run box.openSpace. Somehow I missed this, but I think it's coming from here. Was this line commented for a specific reason?

0xTimepunk avatar Sep 12 '19 16:09 0xTimepunk

@j-mars Are you getting this error at www.3box.io or from a fork you're running locally? That line was commented out, if Im not mistaken, because that feature was not yet released. That feature was released this morning. Can I ask what you're trying to do? Do you mind pulling the recent updates and letting me know if the issue you're seeing persists?

oznekenzo avatar Sep 12 '19 17:09 oznekenzo

Moving this issue to the 3box-dapp repo.

oed avatar Sep 13 '19 07:09 oed

@oznekenzo I was using a fork that I was running locally for over a week and haven't updated since. Guess I will look at the changes and see what happens!

EDIT: You mentioned

I think it might be because you're trying to get a thread that doesn't yet exist.

This might be the only explanation. I ran the code and I can see that this deterministic seed first account has a couple of listSpaces (obtained from Box.listSpaces) which I haven't joined yet.

0xTimepunk avatar Sep 13 '19 09:09 0xTimepunk