Alias Header number -> blockNumber (#760)
This commit is contained in:
@@ -36,6 +36,6 @@
|
||||
"@polkadot/rpc-rx": "^0.46.5",
|
||||
"@polkadot/storage": "^0.46.5",
|
||||
"@polkadot/types": "^0.46.5",
|
||||
"@polkadot/util-crypto": "^0.35.4"
|
||||
"@polkadot/util-crypto": "^0.35.6"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -33,6 +33,6 @@
|
||||
"@polkadot/jsonrpc": "^0.46.5",
|
||||
"@polkadot/rpc-provider": "^0.46.5",
|
||||
"@polkadot/types": "^0.46.5",
|
||||
"@polkadot/util": "^0.35.4"
|
||||
"@polkadot/util": "^0.35.6"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -30,10 +30,10 @@
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-provider#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.3.4",
|
||||
"@polkadot/keyring": "^0.35.4",
|
||||
"@polkadot/keyring": "^0.35.6",
|
||||
"@polkadot/storage": "^0.46.5",
|
||||
"@polkadot/util": "^0.35.4",
|
||||
"@polkadot/util-crypto": "^0.35.4",
|
||||
"@polkadot/util": "^0.35.6",
|
||||
"@polkadot/util-crypto": "^0.35.6",
|
||||
"@types/nock": "^9.3.1",
|
||||
"eventemitter3": "^3.1.0",
|
||||
"isomorphic-fetch": "^2.2.1",
|
||||
|
||||
@@ -12,6 +12,6 @@
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.3.4",
|
||||
"@polkadot/types": "^0.46.5",
|
||||
"@polkadot/util": "^0.35.4"
|
||||
"@polkadot/util": "^0.35.6"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -30,9 +30,9 @@
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/type-storage#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.3.4",
|
||||
"@polkadot/keyring": "^0.35.4",
|
||||
"@polkadot/keyring": "^0.35.6",
|
||||
"@polkadot/types": "^0.46.5",
|
||||
"@polkadot/util": "^0.35.4",
|
||||
"@polkadot/util-crypto": "^0.35.4"
|
||||
"@polkadot/util": "^0.35.6",
|
||||
"@polkadot/util-crypto": "^0.35.6"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -30,8 +30,8 @@
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/types#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.3.4",
|
||||
"@polkadot/keyring": "^0.35.4",
|
||||
"@polkadot/util": "^0.35.4",
|
||||
"@polkadot/keyring": "^0.35.6",
|
||||
"@polkadot/util": "^0.35.6",
|
||||
"core-js": "^2.6.5"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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