Skip to content

Instantly share code, notes, and snippets.

@yidongw
Created December 20, 2018 22:59
Show Gist options
  • Save yidongw/a3e3b49ceb3989cc827f0ed5dc2ef4ec to your computer and use it in GitHub Desktop.
Save yidongw/a3e3b49ceb3989cc827f0ed5dc2ef4ec to your computer and use it in GitHub Desktop.
Perun7
function VCCloseInitTimeout(uint vid) AliceOrBob public {
require(virtual[vid].status == VCStatus.Closing && msg.sender == virtual[vid].Ingrid);
if (now > virtual[vid].timeout) {
EventClosed();
selfdestruct(msg.sender);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment