July 2018
Beginner
106 pages
2h 24m
English
Again, if you visit EIP GitHub, you will get an abstract, and an explanation as to why we need the ERC827 token standard. You can actually specify some data or a function that you want to be executed once a transfer has taken place. This can be done using the following function:
function transferAndCall(address _to, uint256 _value, bytes _data) public payable returns (bool) { require(_to != address(this)); require(super.transfer(_to, _value)); require(_to.call(_data)); return true; }
You call the preceding function on the address of the receiver.
This is all about the token standards. This is not the end—a lot of new token standards will surely ...
Read now
Unlock full access