Created
December 20, 2018 23:26
-
-
Save yidongw/23093ef8779a9aa0b74268611d57430c to your computer and use it in GitHub Desktop.
Perun12
This file contains hidden or 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
function VCCloseTimeoutTimeout(uint vid) AliceOrBob public { | |
VirtualContract memory vc = virtual[vid]; | |
require(vc.status == VCStatus.Timeouted && msg.sender != vc.Ingrid); | |
if (now > vc.timeout) { | |
EventClosed(); | |
selfdestruct(msg.sender); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment