iost-official / go-iost

Official Go implementation of the IOST blockchain
https://developers.iost.io/
GNU Lesser General Public License v3.0
564 stars 112 forks source link

IOST Improvement Proposal 2 (Smart contract fallback function) #1128

Open nujabes403 opened 4 years ago

nujabes403 commented 4 years ago

Please add fallback function which is called when someone transfers tokens to a contract.

In Ethereum, when someone transfers tokens to a contract, contract can process logic according to the function declared in Smart contract, which is called "fallback function".

It would be good to have a fallback function-like feature.