aathan
54fa215885
Update mapping-types.rst
...
typo
2022-03-23 17:15:17 -07:00
aathan
07c9384b44
Update value-types.rst
2022-03-22 23:06:23 -07:00
Richie
beb51068bb
fix: corrects _ prefixes
2022-03-14 08:03:10 -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
chriseth
fb7cdda891
Fix iterable mapping example.
2022-02-28 17:57:19 +01:00
Richie
49f06dacdf
fix: remove lower_case_with_underscores and Capitalized_Words_With_Underscores from code examples
2022-02-21 10:53:35 -08:00
nishant-sachdeva
276851ff91
Added support for FunctionType::Kind::StringConcat and functions string.concat
2022-02-10 22:08:47 +05:30
chriseth
a9b9170a1b
Merge pull request #12636 from fulldecent/patch-25
...
Fix signature of pop member
2022-02-07 13:03:51 +01:00
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
William Entriken
6bd38aa4ef
Fix signature of pop member
2022-02-05 23:59:09 -05: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
Daniel Kirchner
cac0f203a2
Merge pull request #12467 from ethereum/fixMappingExample
...
Fix mapping example.
2022-01-04 18:23:57 +01:00
Pranay Reddy
f30130888e
Added specificity to data location.
...
Added the specificity that bytes1[] and bytes differ because of padding only in memory data location. Added extra sentence that they are similar when used in storage data location.
2022-01-03 12:47:51 +05:30
chriseth
0010027e17
Fix mapping example.
2021-12-30 15:28:09 +01:00
chriseth
c15ef45d29
Explanation about operators.
2021-12-15 18:37:18 +01: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
CrimsonGlory
e2bb3a3347
[docs] Add bitwise assignment operators
...
Add bitwise assignment operators to the list of operators involving LValues [skip ci]
2021-09-25 21:48:20 -03: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
chriseth
62727f322a
Merge pull request #11662 from ethereum/docs-fix-highlighting-and-upgrade-pygments
...
[Docs] Fix highlighting and always use latest packages
2021-07-29 11:29:38 +02:00
Harikrishnan Mulackal
f0d7ed98a5
Merge pull request #11675 from TransmissionsDev/patch-1
...
Remove incorrect statement that calldata must be used for external functions
2021-07-26 13:32:22 +02:00
t11s
c2dfbbf78c
New note about which data locations are allowed in which function types
...
Co-authored-by: Kamil Śliwak <cameel2@gmail.com>
2021-07-18 15:02:16 -07:00
t11s
61f33c53a0
Remove trailing whitespace
2021-07-18 10:16:51 -07:00
t11s
bc36dbf3b8
Fix extra space
2021-07-18 10:11:18 -07:00
t11s
61e4c29cf8
Update note about calldata
2021-07-18 10:10:07 -07:00
t11s
bb040e40ed
Fix rst syntax
2021-07-17 12:46:58 -07:00
t11s
e7324f660d
Update line about calldata use for external funcs
2021-07-17 12:45:03 -07:00
t11s
616933cd5f
Remove incorrect statement that calldata must be used for external functions
2021-07-16 22:33:48 -07: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
d8260a1e93
docs: Replace > with >= in pragmas to work around the highligher being unable to process the former
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
CrimsonGlory
ab5898f11c
RHS->right hand side
2021-07-12 21:18:46 -03: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
axeldelamarre
a5d3df532a
Update reference-types.rst
2021-06-10 19:58:11 +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
Djordje Mijovic
337adee395
Documenting bytes to fixed bytes conversion.
...
Co-authored-by: chriseth <chris@ethereum.org>
Co-authored-by: Alex Beregszaszi <alex@rtfs.hu>
2021-04-23 13:30:19 +02:00
Feiyang Tan
e36337d74b
Type: strings
2021-04-08 15:21:33 +02:00
Kamil Śliwak
67dea6c4f1
docs: Clarify which functions can be assigned to function variables
2021-03-30 14:31:51 +02:00
Kamil Śliwak
797554668c
docs: Newly allocated arrays are initialized with default values
2021-03-30 14:31:51 +02:00