aathan
07c9384b44
Update value-types.rst
2022-03-22 23:06:23 -07:00
nishant-sachdeva
b7a9daa2f8
Generate warning when rational numbers are converted to their mobile type without explicit requests
2022-03-14 14:04:46 +05:30
Naveen Sahu
2e2094ad82
plain address
can be sent Ether too
...
The docs state that a plain `address` cannot be sent Ether. But even though `send` and `transfer` members are not available for plain `address`, the `call` is. And `call` can be invoked upon a plain `address` type to send Ether to the address.
For instance, the `someone` (`address` type) can be sent Ether by invoking `sendSomeone()` method in the following `Dummy` contract:
```
contract Dummy {
address someone = 0xAb8...cb2;
function balanceOf(address addr) public view returns (uint) {
return addr.balance;
}
function sendToSomeone() public payable returns (bool) {
(bool sent, ) = someone.call{value: msg.value}("");
return sent;
}
}
```
2022-02-07 12:44:21 +01:00
chriseth
8728971354
Correct type of address.code
2022-01-31 19:07:01 +01:00
William Entriken
78f0be56c3
Document address members code and codehash
2022-01-13 01:20:45 -05:00
chriseth
d414153258
Some clarifications on literals.
2021-12-06 17:36:34 +01:00
Alex Beregszaszi
b36a3c6bf5
Fix documentation for valid ASCII string literals
2021-11-20 22:41:19 +00:00
José López
b4a527039f
fixed example address payable
2021-11-03 20:21:31 -03:00
sgmoore
ca232142be
Update value-types.rst - fix typo
...
Fix typo at line 69.
2021-10-02 20:32:25 -07:00
hrkrshnn
952540c3b5
User defined value type: changes in documentation and test case
...
Changed the name of a function from `truncate` to `floor`, since that is more appropriate; updated
the inaccurate description on the rounding behaviour. Also modified the respective semantic test.
2021-09-09 16:57:03 +02:00
hrkrshnn
fbb1b884b2
Documentation and Changelog
2021-09-08 21:19:30 +02:00
Marenz
2b28f87abf
Add type().min/max for enums
2021-09-01 15:02:02 +02:00
John Adler
a029b0ba67
Fix typo
...
Fix missing `s`.
2021-08-14 14:31:06 -04:00
Kamil Śliwak
693b88e5f8
docs: Force highlighter to work despite errors on snippets that it cannot parse
2021-07-15 10:14:00 +02:00
Kamil Śliwak
f3a5c27852
docs: Replace a few remaining ::
blocks with .. code-block::
2021-07-15 10:14:00 +02:00
Kamil Śliwak
ce79e2515b
docs: Fix badly indented lists
2021-07-15 10:13:30 +02:00
Kamil Śliwak
312ac4a255
docs: Remove deprecated escape characters from the list of available escapes
2021-07-14 21:28:20 +02:00
Kamil Śliwak
ddccd73a4b
Fix outdated references to byte[]
type (it's now bytes1[]
)
2021-07-08 13:16:23 +02:00
iskanderandrews
a8e9d7a80d
docs/
...
Enhancing all the .rst doc files by adding highlighting for the code snippets, including the following langs:
1. Solidity
2. bash
3. javascript
4. assembly
2021-06-25 12:33:55 +02:00
Harikrishnan Mulackal
9cffaddadc
Merge pull request #11448 from ethereum/docs-staticcall-value
...
[DOCS] Clarification about value option for staticcall.
2021-05-27 17:52:21 +02:00
William Entriken
74d5c51303
Fix comparison of bit shifts (unchecked overflow) to arithmetic (checked overflow)
...
Co-authored-by: Daniel Kirchner <daniel@ekpyron.org>
Co-authored-by: Harikrishnan Mulackal <webmail.hari@gmail.com>
2021-05-27 17:20:27 +02:00
hrkrshnn
b8d5d5744e
Clarification about value option for staticcall.
2021-05-27 11:21:15 +02:00
Kamil Śliwak
67dea6c4f1
docs: Clarify which functions can be assigned to function variables
2021-03-30 14:31:51 +02:00
az1az1
91b1ada8f5
Update value-types.rst
2021-01-20 17:19:38 -05:00
hrkrshnn
571f9dafca
Documentation for the PR about making address conversions nonpayable
2020-12-15 15:04:45 +01:00
Alex Beregszaszi
15237c8404
Disable the type byte
2020-12-14 19:18:25 +00:00
hrkrshnn
88c99a7538
Tests/Docs: changing type of msg.sender and tx.origin into address
...
And also making the type of address(literal) as non-payable address.
2020-12-14 16:55:48 +01:00
hrkrshnn
9e5d7b9910
Test updates after disallowing Integer -> Contract conversion
2020-12-03 17:53:00 +01:00
Kamil Śliwak
1bf700e088
Return a type error when an enum has more than 256 members
2020-11-16 18:58:19 +01:00
chriseth
70e7326695
Document Panic.
2020-10-22 19:26:26 +02:00
chriseth
e262f47f21
Documentation.
2020-10-19 16:58:59 +02:00
chriseth
aa7a6922e7
Restrict unary negation to signed integers.
2020-09-17 15:01:53 +02:00
Mathias Baumann
b72fb1333b
Adjust docs example to work with v0.8.0
2020-09-08 13:36:16 +02:00
Alex Beregszaszi
af22dfa5b4
Document unicode string literals
2020-07-27 18:21:17 +01:00
chriseth
a6c773bd96
Fix type inversion for shift and exp operators.
2020-06-03 13:46:26 +02:00
Djordje Mijovic
4c3e78d046
Disallowing shifts by signed types
2020-05-26 10:18:21 +02:00
Djordje Mijovic
bd64b971b9
Fixing tests on breaking branch.
2020-05-19 17:42:19 +02:00
chriseth
257bc6a416
Merge remote-tracking branch 'origin/develop' into breaking
2020-05-14 13:04:46 +02:00
chriseth
d33b67b3c2
Add license tags to documentation snippets.
2020-05-13 22:16:34 +02:00
chriseth
0be56a0abf
Merge remote-tracking branch 'origin/develop' into breaking
2020-05-12 17:48:53 +02:00
Harikrishnan Mulackal
091abcea8c
Updated docs for type(X).min and type(X).max
2020-05-11 16:19:55 +05:30
hrkrshnn
bd0b06e8db
Tests, Docs and Changelog
2020-04-28 16:03:52 +05:30
chriseth
6728e3ef94
Merge remote-tracking branch 'origin/develop' into breaking
2020-04-22 17:21:32 +02:00
iamdefinitelyahuman
d59706e5f5
docs: fix formatting errors and style inconsistencies
2020-04-20 20:24:31 +04:00
chriseth
7d68f9f6c3
Merge remote-tracking branch 'origin/develop' into breaking
2020-03-24 13:35:41 +01:00
Erik Kundt
50c22f0800
Adds script which compiles docs example with minimum compiler version.
2020-03-18 19:27:38 +01:00
chriseth
435c9dae71
Merge pull request #8290 from gitpusha/docs-update-staticcall-gascounting
...
added note about gas counting and its effect on staticall.gas(gasLimi…
2020-03-17 10:47:30 +01:00
gitpusha
1b63b8822e
Added note recommending to avoid relying on hardcoded gas values
2020-03-16 18:22:32 +01:00
chriseth
9d92c9fbf1
Merge remote-tracking branch 'origin/develop' into HEAD
2020-03-11 18:44:06 +01:00
Djordje Mijovic
58c6b90705
Deprecated warning for .value() and .gas() on function and constructror calls
2020-03-04 12:51:49 +01:00