Project

General

Profile

Feature #59

Ticketing demo

Added by didi over 7 years ago. Updated over 7 years ago.

Status:
In Progress
Priority:
Normal
Assignee:
Due date:

Description

Got the source from Tom (Meteor Dapp).

Todo:

  • Init git repo
  • Make responsive
  • Make status.im compatible
  • Second (analytics?) view

History

#1 Updated by didi over 7 years ago

Working with Mist:

Repo initialized. To be added with git remote add origin ssh://git@redmine.d10r.net/blockchainhub/gvb-demo.git

#2 Updated by didi over 7 years ago

  • Status changed from New to In Progress

Account logic not working as expected. Investigating...

#3 Updated by didi over 7 years ago

Dietmar Hofer wrote:

Account logic not working as expected. Investigating...

Asked in status slack if Meteor Dapps are compatible.
Somebody pointed me to maker.market Dapp.
Taking a look at the code, they seem not to use the meteor accounts package. Thus I tried to replace that with the handling they have (using web3.eth.getAccounts), however the callback never fires. Didn't yet figure out why that is. Maybe something in the prior web3 init, but may also be just a stupid mistake of mine.

With the code as is I had the following issues:
In Mist, it listed 5 (or 6?) accounts, none of which is mine. Probably accounts which were already in the Mongo collection delivered by Tom with the code.
After replacing AccountsList = new Mongo.Collection('accounts'); with AccountsList = new Mongo.Collection(new); in Bim_global.js, the account list was successfully reset.

In Metamask I get whatever state was last set in Mist. If the Dapp isn't loaded in Mist, Metamask shows me an empty account list.

I'm currently not sure if it's better to keep digging or instead build something working from scratch and then replicate it in gvb-demo.

Regaring responsive layout: According to the style doc that should be supported, but I didn't yet try.

Also available in: Atom PDF