Skip to content

Commit d7de455

Browse files
authored
doc: fix a misleading comment on ERC777TokensRecipient (#1098)
`ERC777TokensRecipient` doc: https://eips.ethereum.org/EIPS/eip-777#erc777tokensrecipient-and-the-tokensreceived-hook `ERC777TokensSender` doc: https://eips.ethereum.org/EIPS/eip-777#erc777tokenssender-and-the-tokenstosend-hook This comment was referencing `ERC777TokensRecipient` but cited the section from `ERC777TokensSender` --- ## CLA signature With the submission of this Pull Request, I confirm that I have read and agree to the terms of the [Contributor License Agreement](https://safe.global/cla).
1 parent a2e19c6 commit d7de455

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

contracts/handler/TokenCallbackHandler.sol

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ contract TokenCallbackHandler is HandlerContext, ERC1155TokenReceiver, ERC777Tok
4646
/**
4747
* @inheritdoc ERC777TokensRecipient
4848
* @dev Account that wishes to receive the tokens also needs to register the implementer (this contract) via the ERC-1820 interface registry.
49-
* From the standard: "This is done by calling the setInterfaceImplementer function on the ERC-1820 registry with the holder address as
50-
* the address, the keccak256 hash of ERC777TokensSender (0x29ddb589b1fb5fc7cf394961c1adf5f8c6454761adf795e67fe149f658abe895) as the
51-
* interface hash, and the address of the contract implementing the ERC777TokensSender as the implementer."
49+
* From the standard: "This is done by calling the setInterfaceImplementer function on the ERC-1820 registry with the recipient address as
50+
* the address, the keccak256 hash of ERC777TokensRecipient (0xb281fc8c12954d22544db45de3159a39272895b169a852b314f9cc762e44c53b) as the
51+
* interface hash, and the address of the contract implementing the ERC777TokensRecipient as the implementer."
5252
*/
5353
function tokensReceived(address, address, address, uint256, bytes calldata, bytes calldata) external pure override {
5454
// We implement this for completeness, doesn't really have any value

0 commit comments

Comments
 (0)