Skip to content

Instantly share code, notes, and snippets.

@yidongw
Created December 20, 2018 23:26
Show Gist options
  • Save yidongw/23093ef8779a9aa0b74268611d57430c to your computer and use it in GitHub Desktop.
Save yidongw/23093ef8779a9aa0b74268611d57430c to your computer and use it in GitHub Desktop.
Perun12
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