Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pragma solidity ^0.4.19;
- contract Transaction{
- event ValueLogger(uint);
- event Logger(address);
- address owner;
- modifier isOwner{
- require(owner == msg.sender);
- _;
- }
- modifier validValue{
- assert(msg.value >= 1 ether);
- _;
- }
- function Transaction() public {
- owner = msg.sender;
- }
- function() payable public isOwner validValue {
- ValueLogger(msg.value);
- Logger(msg.sender);
- }
- }
Add Comment
Please, Sign In to add comment