Harden some tuples in arrays

This commit is contained in:
Simon Warta 2020-07-07 17:34:59 +02:00
parent f10faf0e22
commit 46b574191f
2 changed files with 3 additions and 3 deletions

View File

@ -38,7 +38,7 @@ export class Faucet {
apiUrl: string,
addressPrefix: string,
config: TokenConfiguration,
pens: ReadonlyArray<[string, Pen]>,
pens: ReadonlyArray<readonly [string, Pen]>,
logging = false,
) {
this.addressPrefix = addressPrefix;

View File

@ -6,8 +6,8 @@ export async function createPens(
addressPrefix: string,
numberOfDistributors: number,
logging = false,
): Promise<ReadonlyArray<[string, Pen]>> {
const pens = new Array<[string, Pen]>();
): Promise<ReadonlyArray<readonly [string, Pen]>> {
const pens = new Array<readonly [string, Pen]>();
// first account is the token holder
const numberOfIdentities = 1 + numberOfDistributors;