There was an error while loading. Please reload this page.
1 parent 4d8c850 commit b7f5a47Copy full SHA for b7f5a47
1 file changed
escrow/sources/escrow.move
@@ -1,24 +1,17 @@
1
module Escrow::escrow {
2
-- use std::error;
3
-- use std::signer;
4
-+ use 0x1::error;
5
-+ use 0x1::signer;
+ use 0x1::signer;
6
7
-
8
- /// Ошибки
9
const E_ALREADY_FUNDED: u64 = 1;
10
const E_NOT_FUNDED: u64 = 2;
11
const E_COMPLETED: u64 = 3;
12
const E_INSUFFICIENT: u64 = 4;
13
const E_NOT_BUYER: u64 = 5;
14
const E_NOT_SELLER: u64 = 6;
15
16
- /// Простейший "кошелёк" для демонстрации логики (учебная модель)
17
- struct Wallet has store { balance: u64 }
+ struct Wallet has store {
18
balance: u64,
19
}
20
21
- /// Сделка-эскроу
22
struct Deal has store {
23
buyer: address,
24
seller: address,
0 commit comments