getRandom: function () {
let count = new BigNumber("100");
return count.multipliedBy(Math.random()).toFixed(0, 1).toString();
}
但是报告:
{"result":"TypeError: count.multipliedBy is not a function","execute_err":"Call: TypeError: count.multipliedBy is not a function","estimate_gas":"20185"}
在合约里写了下述代码:
但是报告: