WeBASE-Front icon indicating copy to clipboard operation
WeBASE-Front copied to clipboard

交易回执,gasUsed数据太大

Open zorro215 opened this issue 3 years ago • 1 comments

image

问题描述: 镜像 fiscoorg/fiscobcos:v2.9.0 使用helloworld合约,返回gas消耗大的离谱。 复现步骤:

  1. 部署helloword合约
pragma solidity ^0.4.24;

contract HelloWorld {
    string name;

    function HelloWorld() {
        name = "Hello, World!";
    }

    function get()constant returns(string) {
        return name;
    }

    function set(string n) {
        name = n;
    }
}
  1. 调用set方法,gasused正常,参数传入如下:
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
  1. 调用set方法,参数传入:1234 ,gasused超大,如上图。

zorro215 avatar Jun 13 '22 07:06 zorro215

java-sdk正在修复中..

CodingCattwo avatar Jul 08 '22 10:07 CodingCattwo