Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NEP5 call onPayment after transfer #124

Closed
wants to merge 9 commits into from
Closed
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion nep-5.mediawiki
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<pre>
NEP: 5
Title: Token Standard
Author: Tyler Adams <lllwvlvwlll@gmail.com>, luodanwg <luodan.wg@gmail.com>, tanyuan <tanyuan666@gmail.com>, Alan Fong <anfn@umich.edu>
Author: Tyler Adams <lllwvlvwlll@gmail.com>, luodanwg <luodan.wg@gmail.com>, tanyuan <tanyuan666@gmail.com>, Alan Fong <anfn@umich.edu>, Jaime Kindelán <srbelane@gmail.com>
Type: Standard
Status: Final
Created: 2017-08-10
Expand Down Expand Up @@ -93,6 +93,12 @@ If the <code>to</code> address is a deployed contract, the function SHOULD check

If the transfer is not processed, the function SHOULD return <code>false</code>.

The function MUST call <code>onPayment</code> method AFTER fire the <code>Transfer</code> event. This call need the flag <code>IfExists</code> and the <code>amount</code> argument. If the receiver doesn't want to receive this transfer it SHOULD <code>throw</code> an exception.
erikzhang marked this conversation as resolved.
Show resolved Hide resolved

<pre>
public static void onPayment(BigInteger amount)
</pre>

===Events===

====transfer====
Expand Down