小编Rok*_*kus的帖子

实体错误:位置JSON中出现意外的令牌h

嘿,我正在开发一个简单的关于稳定性的智能合约,但遇到了麻烦。每次尝试运行setWord函数时,我都会收到一条错误消息:“交易到HelloWorldContract.setWord错误:编码参数错误:SyntaxError:JSON中位置2处的标记h异常”这可能是什么问题?

pragma solidity ^0.4.0;
contract HelloWorldContract{
string word = "Hello World";
address issuer;
function HelloWorldContract(){
    issuer = msg.sender;    
}
function getWord() constant returns(string) {
    return word;
}
function setWord(string newWord) returns(string) {
    if(issuer != msg.sender){
        return "this is not the creator!";
    }
    else{
     word = newWord;
     return "this is the creator!";
    }
}
}
Run Code Online (Sandbox Code Playgroud)

javascript json ethereum solidity

1
推荐指数
1
解决办法
1672
查看次数

有没有办法将 react-chartjs-2 图表转换为 pdf?

我正在使用一个名为 reactChartJs2 的库,并且有一个使图表可下载的建议,有没有办法将图表转换为 PDF 或任何其他格式?

charts reactjs react-chartjs

1
推荐指数
1
解决办法
2828
查看次数

标签 统计

charts ×1

ethereum ×1

javascript ×1

json ×1

react-chartjs ×1

reactjs ×1

solidity ×1