mirror of
https://github.com/cosmos/cosmjs.git
synced 2025-03-11 14:09:15 +00:00
Harden some tuples in arrays
This commit is contained in:
parent
f10faf0e22
commit
46b574191f
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user