@typeberry/jam 0.1.2-80d53fd → 0.1.2-8c85275
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/importer/index.js +1 -5
- package/importer/index.js.map +1 -1
- package/index.js +1 -5
- package/index.js.map +1 -1
- package/package.json +1 -1
package/importer/index.js
CHANGED
|
@@ -20219,16 +20219,12 @@ class PartiallyUpdatedState {
|
|
|
20219
20219
|
*
|
|
20220
20220
|
* NOTE the info may be updated compared to what is in the state.
|
|
20221
20221
|
*
|
|
20222
|
-
* Takes into account newly created services as well.
|
|
20222
|
+
* Takes into account ejected and newly created services as well.
|
|
20223
20223
|
*/
|
|
20224
20224
|
getServiceInfo(destination) {
|
|
20225
20225
|
if (destination === null) {
|
|
20226
20226
|
return null;
|
|
20227
20227
|
}
|
|
20228
|
-
const isEjected = this.stateUpdate.services.servicesRemoved.some((x) => x === destination);
|
|
20229
|
-
if (isEjected) {
|
|
20230
|
-
return null;
|
|
20231
|
-
}
|
|
20232
20228
|
const maybeNewService = this.stateUpdate.services.servicesUpdates.find((update) => update.serviceId === destination);
|
|
20233
20229
|
if (maybeNewService !== undefined) {
|
|
20234
20230
|
return maybeNewService.action.account;
|