@typeberry/jam 0.1.2-753d258 → 0.1.2-80d53fd
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 +5 -1
- package/importer/index.js.map +1 -1
- package/index.js +5 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
package/importer/index.js
CHANGED
|
@@ -20219,12 +20219,16 @@ 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
|
|
20222
|
+
* Takes into account 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
|
+
}
|
|
20228
20232
|
const maybeNewService = this.stateUpdate.services.servicesUpdates.find((update) => update.serviceId === destination);
|
|
20229
20233
|
if (maybeNewService !== undefined) {
|
|
20230
20234
|
return maybeNewService.action.account;
|