Alias Header number -> blockNumber (#760)

This commit is contained in:
Jaco Greeff
2019-03-07 11:08:18 +01:00
committed by GitHub
parent a8737b4697
commit 5f065b5255
9 changed files with 38 additions and 31 deletions
+7
View File
@@ -68,6 +68,13 @@ export default class Header extends Struct {
);
}
/**
* @description Alias for `blockNumber` (this is displayed in JSON)
*/
get number (): BlockNumber {
return this.blockNumber;
}
/**
* @description The wrapped parent as a [[Hash]]
*/