Skip to content

Commit

Permalink
Fix order parse bug
Browse files Browse the repository at this point in the history
Signed-off-by: KayleCoder <[email protected]>
  • Loading branch information
KayleCoder committed Jul 31, 2024
1 parent 8154704 commit ffc1c2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wrapper/StorageContract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ export class StorageContract implements Contract {
const storageProvidersInfo = ds.loadRef();
const storageProvidersInfoDs = storageProvidersInfo.beginParse();
const storageProviders = storageProvidersInfoDs.loadDict<bigint, Cell>(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;
Expand Down

0 comments on commit ffc1c2b

Please sign in to comment.