Skip to content

Commit

Permalink
add SigHashType & OpCodeType
Browse files Browse the repository at this point in the history
  • Loading branch information
xhliu committed Jun 1, 2020
1 parent fb546d1 commit 61167e1
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docs/syntax.rst
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,19 @@ To cast a supertype ``bytes`` to them, a function of the type name must be expli
Sha256 s = Sha256(b'00112233445566778899aabbccddeeffffeeddccbbaa99887766554433221100');
* **SigHashType** - a sighash type.

.. code-block:: solidity
SigHashType s = SigHashType(b'01');
SigHashType s = SigHash.ALL | SigHash.ANYONECANPAY;
* **OpCodeType** - a OpCode type.

.. code-block:: solidity
OpCodeType s = OpCode.OP_DUP ++ OpCode.OP_ADD;
Subtypes of ``int``
---------------------

Expand Down

0 comments on commit 61167e1

Please sign in to comment.