From 10b891a8a9451eec08447aa31cd477293b6ff4d1 Mon Sep 17 00:00:00 2001 From: KayleCoder Date: Mon, 5 Aug 2024 14:29:41 +0800 Subject: [PATCH] Fix state bugs Signed-off-by: KayleCoder --- src/type/common.ts | 4 ++-- src/wrapper/StorageContract.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/type/common.ts b/src/type/common.ts index bfc29ee..080a4e3 100644 --- a/src/type/common.ts +++ b/src/type/common.ts @@ -19,8 +19,8 @@ export enum TaskState { download_torrent_success = 4, submit_storage_proof = 5, proof_success_wait_for_update_state = 6, - period_finish = 6, - task_finish = 7, + period_finish = 7, + task_finish = 8, more_than_max_storage_provider_count = -1, download_torrent_header_failed = -2, download_torrent_child_file_failed = -3, diff --git a/src/wrapper/StorageContract.ts b/src/wrapper/StorageContract.ts index 4934797..99b9352 100644 --- a/src/wrapper/StorageContract.ts +++ b/src/wrapper/StorageContract.ts @@ -202,7 +202,7 @@ export class StorageContract implements Contract { await provider.internal(via, { sendMode: SendMode.PAY_GAS_SEPARATELY, body: messsage.endCell(), - value: toNano('0.1'), + value: toNano('0.01'), }); }