Skip to content

Commit

Permalink
add ;
Browse files Browse the repository at this point in the history
  • Loading branch information
mattlockyer committed Nov 13, 2020
1 parent cb2de9d commit 3eb1e01
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/account.ts
Original file line number Diff line number Diff line change
@@ -312,13 +312,13 @@ export class Account {
*/
async addKey(publicKey: string | PublicKey, contractId?: string, methodNames?: string|string[], amount?: BN): Promise<FinalExecutionOutcome> {
if (methodNames === '') {
methodNames = []
methodNames = [];
}
if (!methodNames) {
methodNames = ['']
methodNames = [''];
}
if (!Array.isArray(methodNames)) {
methodNames = [methodNames]
methodNames = [methodNames];
}
let accessKey;
if (contractId === null || contractId === undefined || contractId === '') {

0 comments on commit 3eb1e01

Please sign in to comment.