Last active
January 18, 2019 18:40
-
-
Save kimagure44/e3983d26f37751228c97e3a1d4ecfdf0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.4.0; | |
contract ContratoPagar { | |
function ContratoPagar() { | |
} | |
// Añadiendo la palabra reservada payable ya puede recibir dinero | |
function recibirDinero() payable { | |
} | |
function consultarDinero() constant returns(uint) { | |
// this hace referencia al contrato | |
return this.balance; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment