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

Closed
Open
Opened Feb 20, 2023 by He Qun@Chiliad-Spring1 of 1 task completed1/1 task

Solidity合约上链成功,但交易失败

【问题分类】

  • bug

【问题描述】

按照控制台快速搭建的流程搭建一个4节点的链后,尝试部署我自己以前写的solidity合约,这些合约之前是在ropsten测试网络上成功运行的,打算迁移到长安链上试一下

由于您这边提供的solc编译器只能支持到0.8,所以我这边用的Remix编译的,evm版本0.5.10

合约部署成功,但不能调用,system.log日志报错有:

[ERROR] [WEB] ctrl/dispatcher.go:187 getEvmKv err:abi: cannot use common.Address as type [32]uint8 as argument

[ERROR] [WEB] ctrl/dispatcher.go:187 getEvmKv err:abi: cannot use string as type array as argument

似乎是数据格式不匹配的问题?

请问可能的原因以及解决方案

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

chainmaker-go 的 log/system.log & bin/panic.log file *

SDK 的 sdk.log file

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

  • chainmaker-go version * : [v2.3.0]
Edited Feb 20, 2023 by He Qun
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#526

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