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
  • #864

Closed
Open
Opened Oct 16, 2023 by zheng beier@zhengbeier1 of 1 task completed1/1 task

contract exist,合约部署后不能删除重复部署吗?

【问题分类】

  • 智能合约相关

【问题描述】(请对问题进行描述,方便定位问题)

你好, 因为在测试阶段, 之前部署的合约吊销后, 重新部署,CMC报 Error: contract exist , 请问合约一但部署后,就无法删除重新部署了吗??(不改变名称+版本号)的情况下.

另外: 有什么命令或日志能查看到当前执行的合约是哪个版本??因为我发现修改合约代码后, 日志没有变化.不清楚是部署没有更新还是我哪里操作错误?

【相关日志文件】(如果有报错日志请贴图,或者上传附件)

./cmc client contract user create
--contract-name=factzbe
--runtime-type=WASMER
--byte-code-path=/Users/martin/Downloads/workspace/chainmaker/contracts-rust/fact/target/wasm32-unknown-unknown/debug/fact.wasm
--version=1.0
--sdk-conf-path=./testdata/sdk_config.yml
--admin-key-file-paths=./testdata/crypto-config/wx-org1.chainmaker.org/user/admin1/admin1.sign.key,./testdata/crypto-config/wx-org2.chainmaker.org/user/admin1/admin1.sign.key,./testdata/crypto-config/wx-org3.chainmaker.org/user/admin1/admin1.sign.key
--admin-crt-file-paths=./testdata/crypto-config/wx-org1.chainmaker.org/user/admin1/admin1.sign.crt,./testdata/crypto-config/wx-org2.chainmaker.org/user/admin1/admin1.sign.crt,./testdata/crypto-config/wx-org3.chainmaker.org/user/admin1/admin1.sign.crt
--sync-result=true
--params="{}" Error: contract exist Usage: cmc client contract user create [flags]

【系统信息】(请填写系统信息,方便定位问题)

  • chainmaker-go version * : [v2.3.2]
  • OS & version * :
Edited Oct 16, 2023 by zheng beier
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#864

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