From d24595659963df4ae8d113edaf7d45825a340f86 Mon Sep 17 00:00:00 2001 From: Jacques Dafflon Date: Wed, 17 Apr 2019 13:57:58 +0200 Subject: [PATCH] ERC777: Clarify ERC20 transfer for contracts --- EIPS/eip-777.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/EIPS/eip-777.md b/EIPS/eip-777.md index dc26ae88af99e5..8cc020c6ebdbcf 100644 --- a/EIPS/eip-777.md +++ b/EIPS/eip-777.md @@ -1086,15 +1086,21 @@ when sending, minting and transferring token via [ERC777] and [ERC20]: ERC777TokensRecipient
not registered regular address - continue - continue + continue contract MUST revert + SHOULD continue1 +> 1. +> The transaction SHOULD continue for clarity as ERC20 is not aware of hooks. +> However, this can result in accidentally locked tokens. +> If avoiding accidentally locked tokens is paramount, the transaction MAY revert. + + There is no particular action to take if `tokensToSend` is not implemented. The transfer MUST proceed and only be canceled if another condition is not respected such as lack of funds or a `revert` in `tokensReceived` (if present).