File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -57,12 +57,12 @@ module Escrow::escrow {
5757
5858 /// Выплата продавцу (выпуск средств из эскроу)
5959 public fun release (seller: &signer , seller_wallet: &mut Wallet , d: &mut Deal ) {
60- assert ! (signer ::address_of (seller) == d.seller, E_NOT_SELLER );
61- assert ! (! d.funded, E_ALREADY_FUNDED );
62- assert ! (!d.completed, E_COMPLETED );
63- seller_wallet.balance = seller_wallet.balance + d.amount;
64- d.completed = true ;
65- }
60+ assert ! (signer ::address_of (seller) == d.seller, E_NOT_SELLER );
61+ assert ! (d.funded, E_NOT_FUNDED ); // ДОЛЖНО быть funded = true
62+ assert ! (!d.completed, E_COMPLETED );
63+ seller_wallet.balance = seller_wallet.balance + d.amount;
64+ d.completed = true ;
65+ }
6666
6767 /// Возврат покупателю (рефанд)
6868 public fun refund (buyer: &signer , buyer_wallet: &mut Wallet , d: &mut Deal ) {
You can’t perform that action at this time.
0 commit comments