Skip to content

Commit

Permalink
fix: bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
jaybuidl committed Feb 12, 2024
1 parent 0ec5fdd commit faf6faa
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,13 @@ contract SimpleTwoPartyArbitrableEscrowPayment is Arbitrable {
_;
}

constructor(address _receiver, bytes _extraData, Arbitrator _arbitrator, uint _timeOut, string _metaEvidence) public payable {
constructor(
address _receiver,
bytes _extraData,
Arbitrator _arbitrator,
uint _timeOut,
string _metaEvidence
) public payable Arbitrable(_arbitrator, _extraData) {
sender = msg.sender;
receiver = _receiver;
value = msg.value;
Expand All @@ -32,6 +38,7 @@ contract SimpleTwoPartyArbitrableEscrowPayment is Arbitrable {
}

function raiseDispute() public payable onlySenderOrReceiver {
disputed = true;
disputeID = arbitrator.createDispute.value(msg.value)(2, extraData);
emit Dispute(arbitrator, disputeID, 0, 0);
}
Expand Down

0 comments on commit faf6faa

Please sign in to comment.