我尝试使用 remix 部署一个非常简单的智能合约
contract SimpleStorage2 {
uint public storedData;
constructor (uint initVal) public {
storedData = initVal;
}
function set(uint x) public {
storedData = x;
}
function get() view public returns (uint retVal) {
return storedData;
}
}
当我执行部署时,似乎一切都很好,但是当我查阅 node.log 时,它出现:
VM returned with error err="contract creation code storage
out of gas"
有没有人知道这个问题 Ps:我正在运行一个有 4 个节点的本地网络,并且我正在将 eth 分配给帐户。
有没有人对这个问题有想法:
这是我的 genesis.json
{
"alloc": {
"0xed9d02e382b34818e88b88a309c7fe71e65f419d": {
"balance": "1000000000000000000000000000"
},
"coinbase": "0x0000000000000000000000000000000000000000",
"config": {
"homesteadBlock": 0,
"byzantiumBlock": 0,
"chainId": 10,
"eip150Block": 0,
"eip155Block": 0,
"eip150Hash":
"0x000000
0000000000000000000000000000000000000000000000000000000000",
"eip158Block": 0,
"isQuorum": true
},
"difficulty": "0x0",
"extraData":
"0x0000000000000000000
000000000000000000000000000000000000000000000",
"gasLimit": "0xE0000000",
"mixhash": "0x00000000000000
000000000000000000000000647572616c65787365646c6578",
"nonce": "0x0",
"parentHash": "0x000000000000000000000000000000000000
0000000000000000000000000000",
"timestamp": "0x00"
}