-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Can you create, an example file to create Ethereum Contract? I can't understand priority of Contract class functions.
`
$client = new \GuzzleHttp\Client(['base_uri' => 'localhost:8545']);
dump($client);
$contract = new Contract($client, '0x45d222286e71181b29de42DC35375b77FE8Ce0aF');
dump($contract);
$solidity = pragma solidity ^0.4.18;
contract TestCoin {
uint storedData;
function set(uint x) public {
storedData = x;
}
function get() public constant returns (uint) {
return storedData;
}
};
$out = $contract->create($solidity);
dump($out);
'
I have on $out
jsonrpc": "2.0"
+"error": {#351 ▼
+"code": -32700
+"message": "missing request id"
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels