Skip to content

Commit

Permalink
fix typo and add note to accept function
Browse files Browse the repository at this point in the history
  • Loading branch information
ChengOrangeJu committed Sep 13, 2018
1 parent d9697f5 commit ec31714
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion smart_contract.md
Expand Up @@ -427,7 +427,8 @@ Tips:


### accept
this method is aimed to make it possible to send a binary transfer to a contract account. As the `to` is a smart contact address, which has declared a function `accept()` and it excutes correctly, the transfer will succeed. If the Tx is a non-binary Tx,it will be treated as a normal function.
this method is aimed to make it possible to send a binary transfer to a contract account. As the `to` is a smart contact address, which has declared a function `accept()` and it executes correctly, the transfer will succeed. If the Tx is a non-binary Tx, it will be treated as a normal function.
Note: If smartContract_1 use blockchain.transfer to smartContract_2's address, the accept function in smartContract_2 will not be invoked.
```js
"use strict";
var DepositeContent = function (text) {
Expand Down

0 comments on commit ec31714

Please sign in to comment.