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

编译合约报错 #8

Open
LucienSong opened this issue Dec 17, 2018 · 2 comments
Open

编译合约报错 #8

LucienSong opened this issue Dec 17, 2018 · 2 comments

Comments

@LucienSong
Copy link

编译合约报错,但是编译hello合约又可以。

anonymous$ js4eos dapp compile eosio.token
TypeError: Cannot read property 'kylin' of undefined
    at compile (/usr/local/lib/node_modules/js4eos/cmds/dapp_cmds/compile.js:35:59)
    at Object.exports.handler (/usr/local/lib/node_modules/js4eos/cmds/dapp_cmds/compile.js:76:5)
    at Object.self.runCommand (/usr/local/lib/node_modules/js4eos/node_modules/yargs/lib/command.js:231:22)
    at Object.Yargs.self._parseArgs (/usr/local/lib/node_modules/js4eos/node_modules/yargs/yargs.js:990:30)
    at Object.self.runCommand (/usr/local/lib/node_modules/js4eos/node_modules/yargs/lib/command.js:202:45)
    at Object.Yargs.self._parseArgs (/usr/local/lib/node_modules/js4eos/node_modules/yargs/yargs.js:990:30)
    at Object.get [as argv] (/usr/local/lib/node_modules/js4eos/node_modules/yargs/yargs.js:930:19)
    at startCmd (/usr/local/lib/node_modules/js4eos/js4eos:8:3)
    at Object.<anonymous> (/usr/local/lib/node_modules/js4eos/js4eos:28:5)
    at Module._compile (internal/modules/cjs/loader.js:722:30)
@itleaks
Copy link
Owner

itleaks commented Dec 21, 2018

编译合约报错,但是编译hello合约又可以。

anonymous$ js4eos dapp compile eosio.token
TypeError: Cannot read property 'kylin' of undefined
    at compile (/usr/local/lib/node_modules/js4eos/cmds/dapp_cmds/compile.js:35:59)
    at Object.exports.handler (/usr/local/lib/node_modules/js4eos/cmds/dapp_cmds/compile.js:76:5)
    at Object.self.runCommand (/usr/local/lib/node_modules/js4eos/node_modules/yargs/lib/command.js:231:22)
    at Object.Yargs.self._parseArgs (/usr/local/lib/node_modules/js4eos/node_modules/yargs/yargs.js:990:30)
    at Object.self.runCommand (/usr/local/lib/node_modules/js4eos/node_modules/yargs/lib/command.js:202:45)
    at Object.Yargs.self._parseArgs (/usr/local/lib/node_modules/js4eos/node_modules/yargs/yargs.js:990:30)
    at Object.get [as argv] (/usr/local/lib/node_modules/js4eos/node_modules/yargs/yargs.js:930:19)
    at startCmd (/usr/local/lib/node_modules/js4eos/js4eos:8:3)
    at Object.<anonymous> (/usr/local/lib/node_modules/js4eos/js4eos:28:5)
    at Module._compile (internal/modules/cjs/loader.js:722:30)

需要在js4eos_config.js添加你的合约的部署配置,比如eosio.token,就需要添加下面的内容
deploy:{
eosio.token:{
mainnet:'xxxx',
jungle:'xxxx', //replace contract account to your account
kylin:'xxxx', //replace contract account to your account
},
}

@itleaks
Copy link
Owner

itleaks commented Dec 21, 2018

同时,非常感谢反馈,最新版本已经添加了更加友好的提示信息,请更新
npm install -g js4eos

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