Skip to content

Commit b7f5a47

Browse files
authored
Update escrow.move
1 parent 4d8c850 commit b7f5a47

1 file changed

Lines changed: 2 additions & 9 deletions

File tree

escrow/sources/escrow.move

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,17 @@
11
module Escrow::escrow {
2-
- use std::error;
3-
- use std::signer;
4-
+ use 0x1::error;
5-
+ use 0x1::signer;
2+
use 0x1::signer;
63

7-
8-
/// Ошибки
94
const E_ALREADY_FUNDED: u64 = 1;
105
const E_NOT_FUNDED: u64 = 2;
116
const E_COMPLETED: u64 = 3;
127
const E_INSUFFICIENT: u64 = 4;
138
const E_NOT_BUYER: u64 = 5;
149
const E_NOT_SELLER: u64 = 6;
1510

16-
/// Простейший "кошелёк" для демонстрации логики (учебная модель)
17-
struct Wallet has store { balance: u64 }
11+
struct Wallet has store {
1812
balance: u64,
1913
}
2014

21-
/// Сделка-эскроу
2215
struct Deal has store {
2316
buyer: address,
2417
seller: address,

0 commit comments

Comments
 (0)