Skip to content

Commit

Permalink
Merge pull request vyperlang#1232 from shogochiai/patch-1
Browse files Browse the repository at this point in the history
num256 isn't exist on current Vyper
  • Loading branch information
jacqueswww authored Feb 12, 2019
2 parents df5d0b3 + 290b614 commit 15dc98a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/logging.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ This example is taken from the `sample ERC20 contract <https://github.com/ethere
::

# Events of the token.
Transfer: event({_from: indexed(address), _to: indexed(address), _value: num256})
Approval: event({_owner: indexed(address), _spender: indexed(address), _value: num256})
Transfer: event({_from: indexed(address), _to: indexed(address), _value: uint256})
Approval: event({_owner: indexed(address), _spender: indexed(address), _value: uint256})

# Transfer some tokens from message sender to another address
def transfer(_to : address, _value : num256) -> bool:
def transfer(_to : address, _value : uint256) -> bool:

... Logic here to do the real work ...

Expand Down Expand Up @@ -55,7 +55,7 @@ Let's look at an event declaration in more detail.

::

Transfer: event({_from: indexed(address), _to: indexed(address), _value: num256})
Transfer: event({_from: indexed(address), _to: indexed(address), _value: uint256})

Event declarations look like state variable declarations but use the special keyword event. event takes a as its argument that consist of all the arguments to be passed as part of the event. Typical events will contain two kinds of arguments:

Expand Down

0 comments on commit 15dc98a

Please sign in to comment.