Nuno Santos
3eedc635c4
Misspelling and terms inconsistencies ( #14280 )
...
* Installing solidity tweeks
* A few more misspells
* More inconsistencies fixed
* Removed contractions according to our guide.
2023-05-30 20:49:25 +01:00
Nuno Santos
02a07fdf46
Changed references to money
2023-05-22 12:54:43 +01:00
Kamil Śliwak
cab88290c2
docs: Consistent index entries for literals, denominations, free functions
2023-04-14 16:57:20 +02:00
Kamil Śliwak
8f63bb646c
docs: Hexadecimal string literals behave like string literals only in some aspects
2023-04-14 16:36:26 +02:00
minaminao
c2a2fce8e7
Replace Send with `send
`
2023-03-28 23:01:06 +09:00
Nuno Santos
411841cbb5
Tweak wording in value type docs ( #13935 )
...
* Update value-types.rst
- User-defined were written inconsistently (with/without hyphen)
- Rewording some sentences for user clarity.
* Update docs/types/value-types.rst
Co-authored-by: chriseth <chris@ethereum.org>
---------
Co-authored-by: chriseth <chris@ethereum.org>
2023-02-06 17:19:48 +00:00
wechman
64a4f32bc2
Consistent terminology for attached/bound functions
2022-12-07 19:31:41 +01:00
andy53
1e5c229a37
update value-types.rst
2022-11-10 15:42:31 -03:00
nishant-sachdeva
8c0740748e
functions taking calldata args should be assignable to function pointers of same type
2022-10-26 13:29:02 +05:30
emmaodia
0d98436de6
Grammar fix
2022-09-05 20:34:10 +02:00
aathan
ffbb6f159e
Update value-types.rst
2022-08-13 14:22:42 +02:00
Aiman Baharna
392b1872b3
docs: Disallow decimal literals with trailing dots
...
Currently the documentation suggests that a decimal literal can omit the
fractional part [1]:
> Decimal fractional literals are formed by a `.` with at least one
> number on one side. Examples include `1.`, `.1` and `1.3`.
However, commit ac68710
(May 30, 2018) disallowed trailing dots that are
not followed by a number [2].
Using decimal literals of the form `1.` will actually result in a
`ParserError` and so the docs should no longer recommend this form.
[1] https://docs.soliditylang.org/en/v0.8.15/types.html#rational-and-integer-literals
[2] ac68710789
2022-06-22 17:19:12 +01:00
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