Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Sign in
issue
issue
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 23
    • Issues 23
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar

新注册的用户请输入邮箱并保存,随后登录邮箱激活账号。后续可直接使用邮箱登录!

  • chainmaker
  • issueissue
  • Issues
  • #379

Closed
Open
Opened Sep 28, 2022 by cao kun@kevin8341

在管理平台部署go编译的合约报错“install contract failure”

一、软硬件环境 4核8G 硬盘:100G 操作系统 linux centos7.9

二、操作步骤 1、按照文档《通过管理台体验长安链》 https://docs.chainmaker.org.cn/v2.3.0_alpha/html/quickstart/%E9%80%9A%E8%BF%87%E7%AE%A1%E7%90%86%E5%8F%B0%E4%BD%93%E9%AA%8C%E9%93%BE.html 部署docker管理平台并部署4个docker链节点,docker版本为20.10.7或以上 docker-compose 版本为1.29.2或以上

git clone -b v2.2.0 https://git.chainmaker.org.cn/chainmaker/management-backend.git
cd management-backend
docker-compose up

image

2、打开浏览器,http://192.168.1.28,登录管理平台,生成组织证书,节点证书,用户证书

3、新建区块链,支持的虚拟机类型勾选:DOCKER_GO image

4、下一步按照下图操作,先拉取chainmaker-vm-docker-go镜像,以及安装7z工具

image

下载配置文件 testchain2.zip并解压,执行下面命令

cd release
./start.sh
docker ps

image

5、安装go环境略,克隆合约代码并编译

git clone https://git.chainmaker.org.cn/contracts/contracts-go.git
cd contracts-go/erc721
./build.sh erc721

6、部署合约

image

新合约部署成功

image

7、投票合约,报错合约安装失败.

image

image

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: chainmaker/issue#379

Copyright © 2021 ChainMaker Org. All Rights Reserved. 长安链 版权所有。