Skip to content

Commit

Permalink
remove account default version
Browse files Browse the repository at this point in the history
  • Loading branch information
sleepyOwl14 committed Apr 20, 2024
1 parent b97d5fd commit 32cb364
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/model/account/Account.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2023 ProximaX
* Copyright 2024 ProximaX
* Copyright 2018 NEM
*
* Licensed under the Apache License, Version 2.0 (the "License");
Expand Down Expand Up @@ -56,7 +56,7 @@ export class Account {
/**
* The account version.
*/
public readonly version: number = 1){
public readonly version: number){
}

/**
Expand Down Expand Up @@ -162,7 +162,7 @@ export class Account {
* @param networkType - Network type
* @param version - Account version
*/
public static generateNewAccount(networkType: NetworkType, version: number = 2): Account {
public static generateNewAccount(networkType: NetworkType, version: number): Account {
// Create random bytes
const randomBytesArray = Crypto.randomBytes(32);
// Hash random bytes with entropy seed
Expand Down
2 changes: 1 addition & 1 deletion test/model/account/Account.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ describe('Account', () => {
});

it('should generate a new account', () => {
const account = Account.generateNewAccount(NetworkType.MIJIN_TEST);
const account = Account.generateNewAccount(NetworkType.MIJIN_TEST, 1);
expect(account.publicKey).to.not.be.equal(undefined);
expect(account.privateKey).to.not.be.equal(undefined);
expect(account.address).to.not.be.equal(undefined);
Expand Down

0 comments on commit 32cb364

Please sign in to comment.