is isWarning to ISubmittableResult (#2073)
This commit is contained in:
@@ -24,10 +24,6 @@ export default class SubmittableResult implements ISubmittableResult {
|
||||
return this.status.isDropped || this.status.isFinalityTimeout || this.status.isInvalid || this.status.isUsurped;
|
||||
}
|
||||
|
||||
public get isWarning (): boolean {
|
||||
return this.status.isRetracted;
|
||||
}
|
||||
|
||||
public get isFinalized (): boolean {
|
||||
return this.status.isFinalized;
|
||||
}
|
||||
@@ -36,6 +32,10 @@ export default class SubmittableResult implements ISubmittableResult {
|
||||
return this.status.isInBlock;
|
||||
}
|
||||
|
||||
public get isWarning (): boolean {
|
||||
return this.status.isRetracted;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description Filters EventRecords for the specified method & section (there could be multiple)
|
||||
*/
|
||||
|
||||
@@ -18,6 +18,7 @@ export interface ISubmittableResult {
|
||||
readonly isError: boolean;
|
||||
readonly isFinalized: boolean;
|
||||
readonly isInBlock: boolean;
|
||||
readonly isWarning: boolean;
|
||||
|
||||
filterRecords (section: string, method: string): EventRecord[];
|
||||
findRecord (section: string, method: string): EventRecord | undefined;
|
||||
|
||||
Reference in New Issue
Block a user