dealer-platform / dapp

Decentralized Application of the DEALER platform
MIT License
0 stars 0 forks source link

Cannot read property 'ipns' of undefined #1

Open HuangJie98 opened 3 years ago

HuangJie98 commented 3 years ago

When accessing "user profile (mypage)", the“UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'ipns' of undefined“

sigma67 commented 3 years ago

Did you initialize the database tables?

HuangJie98 commented 3 years ago

Initialize the corresponding user on the EOS Studio?If so, I did.

sigma67 commented 3 years ago

No, you need to also call reporting::init to initialize the contract with test data

https://github.com/dealer-platform/smartContract/blob/d89274bd27a9d48007b9a81e1ac3212d9b74c1c6/src/modules/initialize.cpp#L29-L31

HuangJie98 commented 3 years ago

Like this? S42A 0FF$6TFSY`BRGB(13D

Still the Same.

sigma67 commented 3 years ago

You also need to set up a config.json based on config.json.example

https://github.com/dealer-platform/dapp/blob/master/config.json.example

HuangJie98 commented 3 years ago

Besides modifying https://github.com/dealer-platform/dapp/blob/master/config.json.example#L4-L5, https://github.com/dealer-platform/dapp/blob/master/config.json.example#L4-L5, https://github.com/dealer-platform/dapp/blob/master/config.json.example#L15-L16. Do I need to modify anything else?

sigma67 commented 3 years ago

No, lgtm

HuangJie98 commented 3 years ago

But I've changed it before, and there are still problems.