blocklet / nft-lottery-demo

ABT Node blocklet project, contained a lottery game can buy gift with NFT-store
2 stars 1 forks source link

chore: remove getWebWalletUrl #8

Closed frmachao closed 2 years ago

frmachao commented 2 years ago

启动失败:

✖ Start blocklet nft-lottery-demo failed with error: Run [pre-start] failed: /Users/machao/Dev/getWebWalletUrl/nft-lottery-demo/node_modules/@ocap/asset/lib/index.js:122
throw new Error('Factory hooks should not be empty for instant settlement');
^
Error: Factory hooks should not be empty for instant settlement
at isValidFactory (/Users/machao/Dev/getWebWalletUrl/nft-lottery-demo/node_modules/@ocap/asset/lib/index.js:122:13)
at getFactoryProps (/Users/machao/Dev/getWebWalletUrl/nft-lottery-demo/server/libs/nft.js:81:3)
at /Users/machao/Dev/getWebWalletUrl/nft-lottery-demo/server/libs/factory.js:37:5
at Array.map (<anonymous>)
at Object.<anonymous> (/Users/machao/Dev/getWebWalletUrl/nft-lottery-demo/server/libs/factory.js:34:31)
at Module._compile (node:internal/modules/cjs/loader:1101:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:1005:19)

related: https://github.com/ArcBlock/ux/issues/509

frmachao commented 2 years ago

在 @LancelotLewis 的帮助下, 我在env.local 中配置了对应变量,然后blocklet dev 时还是会报错,但是在 zhang han 本地是能work 的。请 @wangshijun 帮忙看下这个报错的原因

PAYMENT_TOKEN_ID=“z35n6UoHSi9MED4uaQy6ozFgKPaZj2UKrurBG”
REACT_APP_APP_NAME=“NFT Lottery Demo”
# BLOCKLET_DATA_DIR=“db”
# CHAIN_ID=“beta”
CHAIN_HOST=“https://beta.abtnetwork.io/api”
SERVER_URL=“http://ddns.paddings.cn”
PAYMENT_TOKEN_ID=“z35n6UoHSi9MED4uaQy6ozFgKPaZj2UKrurBG”
CONFIG_API=“https://50ba8217-znkidjks9e8tdu3czp4kcreoaqkbkfmsa9va.did.abtnet.io/api/nft/config”
image