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

合约部署不成功 #91

Open
shark1212 opened this issue Jan 24, 2018 · 1 comment
Open

合约部署不成功 #91

shark1212 opened this issue Jan 24, 2018 · 1 comment

Comments

@shark1212
Copy link

环境ubuntu 16.4
按照手册操作,编译成功,并且也启动了节点,输出日志也正常
但是在 在/systemcontractv2/babel-node deploy.js 下执行没有任何显示
在deploy.js中加入异常捕获,输出如下消息:
Cannot read property 'getBlockNumber' of undefined

发现在web3sync.js的
rawDeploy(account, privateKey,filename) {

    var binary=fs.readFileSync(config.Ouputpath+"./"+filename+".bin",'utf-8');
    var postdata = {
            input: "0x"+binary,
    from: account,
            to: null,
            gas: 100000000,
            randomid:Math.ceil(Math.random()*100000000),
	blockLimit:await getBlockNumber() + 1000,//这一句报错
    }

请问该如何处理,谢谢!

@atenjin
Copy link

atenjin commented Jan 29, 2018

那个·· 确定依赖库的安装正确的了?这个没有复现出来呢。还有就是对于ubuntu来说不能用默认的apt install node 来安装node,这样安装的node是4.x版本的。我们使用的node要求6.x以上
建议您重新安装一下node_module下的依赖库

Honglei-Cong pushed a commit to Honglei-Cong/bcos that referenced this issue Oct 10, 2018
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