web3p / web3.php

A php interface for interacting with the Ethereum blockchain and ecosystem. Native ABI parsing and smart contract interactions.
MIT License
1.17k stars 550 forks source link

What are the params for new method in Contracts? #173

Open mbsaberi opened 4 years ago

mbsaberi commented 4 years ago

Is it possible to explain or add comments to source codes about the parameters that are used in new() method of Contract please?
In your example, there is something like this:

$contract->bytecode($testBytecode)->new(1000000, 'Game Token', 1, 'GT', [
            'from' => $fromAccount,
            'gas' => '0x200b20'
        ], ...

I guess 1000000 is the defined gas fee, Game Token is the token name, 1 is the value, and GT is the token symbol. Am I right? If I am wrong, please give me details about this method please.