Fix for RPC bugs caused by uk spelling (#904)

* Replaced UK with US spelling

* -ised to -ized

* UK -> US spelling in chain rpc methods

* Tests for RPC chain methods on Alex
This commit is contained in:
Stefanie Doll
2019-05-14 21:27:16 +02:00
committed by Jaco Greeff
parent ce2bbadf82
commit db78aeb225
6 changed files with 29 additions and 12 deletions
@@ -10,13 +10,13 @@ import { BlockNumber, Header } from '@polkadot/types';
import { drr } from '../util/drr';
/**
* @description Get the latest finalised block number.
* @description Get the latest finalized block number.
* example
* <BR>
*
* ```javascript
* api.derive.chain.bestNumberFinalized((blockNumber) => {
* console.log(`the current finalised block is #${blockNumber}`);
* console.log(`the current finalized block is #${blockNumber}`);
* });
* ```
*/
@@ -12,13 +12,13 @@ import { bestNumber } from './bestNumber';
import { bestNumberFinalized } from './bestNumberFinalized';
/**
* @description Calculates the lag between finalised head and best head
* @description Calculates the lag between finalized head and best head
* @example
* <BR>
*
* ```javascript
* api.derive.chain.bestNumberLag((lag) => {
* console.log(`finalised is ${lag} blocks behind head`);
* console.log(`finalized is ${lag} blocks behind head`);
* });
* ```
*/