aboutsummaryrefslogtreecommitdiffstats
path: root/docs/abi-spec.rst
diff options
context:
space:
mode:
authorDaniel Kirchner <daniel@ekpyron.org>2018-08-06 20:59:37 +0800
committerDaniel Kirchner <daniel@ekpyron.org>2018-08-13 20:27:01 +0800
commit7d7abeb1496dddfab7eb8705dbfc3d06284cf25d (patch)
tree2909fe73439256e0f77231ec219b1b9af6fefd5a /docs/abi-spec.rst
parent43db88b8363d73ee2f5ffa094ff506414261bd11 (diff)
downloaddexon-solidity-7d7abeb1496dddfab7eb8705dbfc3d06284cf25d.tar.gz
dexon-solidity-7d7abeb1496dddfab7eb8705dbfc3d06284cf25d.tar.zst
dexon-solidity-7d7abeb1496dddfab7eb8705dbfc3d06284cf25d.zip
Disallow ambiguous conversions between number literals and bytesXX types.
Diffstat (limited to 'docs/abi-spec.rst')
-rw-r--r--docs/abi-spec.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/abi-spec.rst b/docs/abi-spec.rst
index 3c593e54..69bbe5c3 100644
--- a/docs/abi-spec.rst
+++ b/docs/abi-spec.rst
@@ -444,7 +444,7 @@ For example,
pragma solidity >0.4.24;
contract Test {
- constructor() public { b = 0x12345678901234567890123456789012; }
+ constructor() public { b = hex"12345678901234567890123456789012"; }
event Event(uint indexed a, bytes32 b);
event Event2(uint indexed a, bytes32 b);
function foo(uint a) public { emit Event(a, b); }