Alias Header number -> blockNumber (#760)
This commit is contained in:
@@ -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]]
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user