From ffc1c2b640a776ac15e1052dc9d8e93d49e90abb Mon Sep 17 00:00:00 2001 From: KayleCoder Date: Wed, 31 Jul 2024 10:18:51 +0800 Subject: [PATCH] Fix order parse bug Signed-off-by: KayleCoder --- src/wrapper/StorageContract.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wrapper/StorageContract.ts b/src/wrapper/StorageContract.ts index 168f04f..1aa2283 100644 --- a/src/wrapper/StorageContract.ts +++ b/src/wrapper/StorageContract.ts @@ -254,7 +254,7 @@ export class StorageContract implements Contract { const storageProvidersInfo = ds.loadRef(); const storageProvidersInfoDs = storageProvidersInfo.beginParse(); const storageProviders = storageProvidersInfoDs.loadDict(number256DictionaryKey, cellDictionaryValue); - const {max_storage_provider_count} = this.loadOrderInfo(orderInfo); + const {max_storage_provider_count} = this.loadOrderInfo(firstCell); return max_storage_provider_count - storageProviders.size; } return 0;