Skip to the content.

Payable

作用

使用 Payable 关键字来修饰合约函数,可使得合约可以接收和管理本链原生代币(以太坊上就是 eth),以下就使用 eth 代表本链 token

如何用

示例

PayableExample.sol