Skip to content

Commit 99a75c4

Browse files
committed
fix: lint
1 parent 9aa7f85 commit 99a75c4

2 files changed

Lines changed: 11 additions & 12 deletions

File tree

packages/api-contract/src/base/Blueprint.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@ export class Blueprint<ApiType extends ApiTypes> extends Base<ApiType> {
7272
encodeSalt(salt)
7373
).withResultTransform((result: ISubmittableResult) =>
7474
new BlueprintSubmittableResult(result, applyOnEvent(result, ['Instantiated'], ([record]: EventRecord[]) =>
75-
new Contract<ApiType>(this.api, this.abi, record.event.data[1] as AccountId, this._decorateMethod), this._isRevive
76-
)
77-
)
75+
new Contract<ApiType>(this.api, this.abi, record.event.data[1] as AccountId, this._decorateMethod), this._isRevive
76+
)
77+
)
7878
);
7979
};
8080
}

packages/api-contract/src/base/Code.ts

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -91,17 +91,16 @@ export class Code<ApiType extends ApiTypes> extends Base<ApiType> {
9191
this.api.events.revive['Instantiated'].is(event)
9292
? [
9393
blueprint,
94-
new Contract<ApiType>(
95-
this.api,
96-
this.abi,
97-
(event as unknown as { data: [Codec, AccountId] }).data[1],
98-
this._decorateMethod
99-
)
100-
]
94+
new Contract<ApiType>(
95+
this.api,
96+
this.abi,
97+
(event as unknown as { data: [Codec, AccountId] }).data[1],
98+
this._decorateMethod
99+
)
100+
]
101101
: [blueprint, contract],
102102
[undefined, undefined]
103-
),
104-
this._isRevive
103+
), this._isRevive
105104
) || [undefined, undefined])
106105
)
107106
);

0 commit comments

Comments
 (0)