Skip to content

Commit

Permalink
fix: feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
shuffledex committed Feb 24, 2020
1 parent dfc5b57 commit e4e9574
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion package.json
Expand Up @@ -63,7 +63,6 @@
"dependencies": {
"@polymathnetwork/polkadot": "0.101.0-beta.14",
"@types/bignumber.js": "^5.0.0",
"@types/bn.js": "^4.11.6",
"bignumber.js": "^9.0.0",
"json-stable-stringify": "^1.0.1",
"lodash": "^4.17.15"
Expand Down
2 changes: 1 addition & 1 deletion src/Polymesh.ts
Expand Up @@ -59,7 +59,7 @@ export class Polymesh {
} else {
throw new PolymeshError({
code: ErrorCode.FatalError,
message: `You don't have an attached identity`,
message: 'The current account does not have an associated identity',
});
}
};
Expand Down
6 changes: 3 additions & 3 deletions src/testUtils/mocks/PolkadotMockFactory.ts
Expand Up @@ -154,10 +154,10 @@ export class PolkadotMockFactory {

private isMockingContext = false;

private mockingContextOptions = {
private mockingContextOptions: ContextOptions = {
withSeed: true,
balance: new BigNumber(100),
} as ContextOptions;
};

/**
* Initialize the factory by adding default all-purpose functionality to the mock manager
Expand All @@ -173,7 +173,7 @@ export class PolkadotMockFactory {
// Context
if (opts?.mockContext) {
this.isMockingContext = true;
if (typeof opts.mockContext !== 'boolean') {
if (opts.mockContext !== true) {
this.mockingContextOptions = { ...this.mockingContextOptions, ...opts.mockContext };
}

Expand Down

0 comments on commit e4e9574

Please sign in to comment.