If an Ethereum transaction receipt shows success, does that necessarily mean the token transfer completed?

The `status` in an Ethereum receipt indicates whether the outermost call succeeded. An ERC-20 `transfer` can return a Boolean value, so the caller needs to handle the case where it returns `false`. These two statuses describe the execution of the entire transaction and the return result of this particular token operation, respectively.

Suppose an application calls a token contract while processing orders in batches. If it receives `false`, it logs an error and continues processing the other orders. The outer call can finish successfully, and the on-chain receipt can also show success, but this order still needs to be checked. Marking the entire batch of orders as paid based only on the outer status conflates business results with transaction status.

When reconciling payments, you can first confirm that the receipt indicates success, then check the Transfer logs emitted by the expected token contract and verify the recipient address and amount. For batch payments, match each order to its corresponding log. If the expected record cannot be found, you can leave it pending review and investigate the cause based on the behavior of the specific contract.

This article discusses how to verify standard token calls against on-chain receipts. For technical discussion only.

$ETH #Ethereum #ERC20

Original source https://eips.ethereum.org/EIPS/eip-658

https://eips.ethereum.org/EIPS/eip-20