diff --git a/.travis.yml b/.travis.yml index 77dd487..936ae2b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,10 +7,7 @@ branches: - master notifications: email: false -# before_script: -# - npm prune script: - # - npm install --no-optional - npm run validate - npm run build after_success: diff --git a/src/ApostilleAccount.ts b/src/ApostilleAccount.ts index 43a07bc..4ed1e65 100644 --- a/src/ApostilleAccount.ts +++ b/src/ApostilleAccount.ts @@ -65,14 +65,14 @@ export class ApostilleAccount { initiatorAccount: Initiator, rawData: string, mosaics: Mosaic[] | Mosaic[] = [], - url?: string, + urls?: string, hashFunction?: HashFunction, ): Promise { if (initiatorAccount.account.address.networkType !== this.publicAccount.address.networkType) { throw new Error(Errors[Errors.NETWORK_TYPE_MISMATCHED]); } // check if the apostille was already created locally or on chain - await this.isCreated(url).then(() => { + await this.isCreated(urls).then(() => { if (this._created) { throw new Error(Errors[Errors.APOSTILLE_ALREADY_CREATED]); } @@ -118,11 +118,11 @@ export class ApostilleAccount { initiatorAccount: Initiator, message: string, mosaics: Mosaic[] | Mosaic[] = [], - url?: string, + urls?: string, ): Promise { if (!this._created) { // we test locally first to avoid testing on chain evrytime we update - await this.isCreated(url); + await this.isCreated(urls); if (!this._created) { throw new Error(Errors[Errors.APOSTILLE_NOT_CREATED]); } @@ -148,7 +148,7 @@ export class ApostilleAccount { * @memberof ApostilleAccount */ public async announce(urls?: string): Promise { - await this.isCreated().then(async () => { + await this.isCreated(urls).then(async () => { if (!this._created) { throw new Error(Errors[Errors.APOSTILLE_NOT_CREATED]); }