mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #5174 from tomusdrw/patch-1
Clarify contract creation transaction
This commit is contained in:
commit
2547caf896
@ -332,14 +332,15 @@ Transactions
|
|||||||
============
|
============
|
||||||
|
|
||||||
A transaction is a message that is sent from one account to another
|
A transaction is a message that is sent from one account to another
|
||||||
account (which might be the same or the special zero-account, see below).
|
account (which might be the same or empty, see below).
|
||||||
It can include binary data (which is called "payload") and Ether.
|
It can include binary data (which is called "payload") and Ether.
|
||||||
|
|
||||||
If the target account contains code, that code is executed and
|
If the target account contains code, that code is executed and
|
||||||
the payload is provided as input data.
|
the payload is provided as input data.
|
||||||
|
|
||||||
If the target account is the zero-account (the account with the
|
If the target account is not set (the transaction does not have
|
||||||
address ``0``), the transaction creates a **new contract**.
|
a recipient or the recipient is set to ``null``), the transaction
|
||||||
|
creates a **new contract**.
|
||||||
As already mentioned, the address of that contract is not
|
As already mentioned, the address of that contract is not
|
||||||
the zero address but an address derived from the sender and
|
the zero address but an address derived from the sender and
|
||||||
its number of transactions sent (the "nonce"). The payload
|
its number of transactions sent (the "nonce"). The payload
|
||||||
|
Loading…
Reference in New Issue
Block a user