Skip to content

Commit

Permalink
fix: 🐛 test admins endpoint when using signing manager
Browse files Browse the repository at this point in the history
fix test admin endpoint by passing key pair instead of address to avoid
an address lookup
  • Loading branch information
polymath-eric committed May 30, 2024
1 parent 013d8e4 commit 99e6e85
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/developer-testing/developer-testing.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ describe('DeveloperTestingService', () => {
await service.createTestAccounts(params);

expect(polymeshService.execTransaction).toHaveBeenCalledWith(
defaultAdminAddress,
expect.objectContaining({ address: defaultAdminAddress }),
expect.anything(),
expect.anything()
);
Expand Down
2 changes: 1 addition & 1 deletion src/developer-testing/developer-testing.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export class DeveloperTestingService {

const signerAddress = signer
? await this.signingService.getAddressByHandle(signer)
: this.sudoPair.address;
: this.sudoPair;

// Create a DID to attach claim too
const createDidCalls = accounts.map(({ address }) => identity.cddRegisterDid(address, []));
Expand Down

0 comments on commit 99e6e85

Please sign in to comment.