Skip to content

Commit

Permalink
Merge pull request #142 from ethereum-alarm-clock/fix/reinitialization
Browse files Browse the repository at this point in the history
Fix for possible re-initialization after clone
  • Loading branch information
kosecki123 committed Apr 24, 2018
2 parents 2e0471e + 3dadbb8 commit ece10ad
Show file tree
Hide file tree
Showing 2 changed files with 132 additions and 275 deletions.
4 changes: 4 additions & 0 deletions contracts/TransactionRequestCore.sol
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ contract TransactionRequestCore is TransactionRequestInterface {
using RequestScheduleLib for RequestScheduleLib.ExecutionWindow;

RequestLib.Request txnRequest;
bool private initialized = false;

/*
* addressArgs[0] - meta.createdBy
Expand Down Expand Up @@ -36,7 +37,10 @@ contract TransactionRequestCore is TransactionRequestInterface {
)
public payable
{
require(!initialized);

txnRequest.initialize(addressArgs, uintArgs, callData);
initialized = true;
}

/*
Expand Down
Loading

0 comments on commit ece10ad

Please sign in to comment.