Skip to content

Commit

Permalink
Merge pull request #232 from status-im/fix/single-funding
Browse files Browse the repository at this point in the history
fix: can only fund escrow once
  • Loading branch information
iurimatias committed May 14, 2019
2 parents 804767f + d735c0a commit 87d4e1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/teller-network/Escrow.sol
Expand Up @@ -120,7 +120,7 @@ contract Escrow is Pausable, MessageSigned, Fees, Arbitrable {
(token, , , , , seller) = metadataStore.offer(trx.offerId);

require(_from == seller, "Only the seller can fund this escrow");
require(trx.status == EscrowStatus.CREATED || trx.status == EscrowStatus.FUNDED, "Invalid escrow status");
require(trx.status == EscrowStatus.CREATED, "Invalid escrow status");

transactions[_escrowId].tokenAmount += _tokenAmount;
transactions[_escrowId].expirationTime = _expirationTime;
Expand Down

0 comments on commit 87d4e1b

Please sign in to comment.