Skip to content

Commit

Permalink
Use 'sudo' argument when creating sudoSigner in tests
Browse files Browse the repository at this point in the history
this improves code readability
  • Loading branch information
atodorov committed Dec 1, 2023
1 parent e85f751 commit 2ad4939
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion integration-tests/src/test/gate-token.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ describe('Test GATE Token', (): void => {

ccApi = await creditcoinApi((global as any).CREDITCOIN_API_URL);
if ((global as any).CREDITCOIN_EXECUTE_SETUP_AUTHORITY) {
sudoSigner = (global as any).CREDITCOIN_CREATE_SIGNER(keyring, 'lender');
sudoSigner = (global as any).CREDITCOIN_CREATE_SIGNER(keyring, 'sudo');
}
});

Expand Down
2 changes: 1 addition & 1 deletion integration-tests/src/test/remove-authority.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ describe('RemoveAuthority', (): void => {
beforeAll(async () => {
api = (await creditcoinApi((global as any).CREDITCOIN_API_URL)).api;
if (globals.CREDITCOIN_EXECUTE_SETUP_AUTHORITY) {
sudoSigner = (global as any).CREDITCOIN_CREATE_SIGNER(keyring, 'lender');
sudoSigner = (global as any).CREDITCOIN_CREATE_SIGNER(keyring, 'sudo');
authority = keyring.addFromUri('//Auth');
await addAuthorityAsync(api, authority.address, sudoSigner);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ describe('SetCollectCoinsContract', (): void => {
beforeAll(async () => {
ccApi = await creditcoinApi((global as any).CREDITCOIN_API_URL);
if ((global as any).CREDITCOIN_EXECUTE_SETUP_AUTHORITY) {
sudoSigner = (global as any).CREDITCOIN_CREATE_SIGNER(keyring, 'lender');
sudoSigner = (global as any).CREDITCOIN_CREATE_SIGNER(keyring, 'sudo');
}
});

Expand Down
2 changes: 1 addition & 1 deletion integration-tests/src/test/set-gate-contract.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ describeIf((global as any).CREDITCOIN_EXECUTE_SETUP_AUTHORITY, 'SetGateContract'

beforeAll(async () => {
ccApi = await creditcoinApi((global as any).CREDITCOIN_API_URL);
sudoSigner = (global as any).CREDITCOIN_CREATE_SIGNER(keyring, 'lender');
sudoSigner = (global as any).CREDITCOIN_CREATE_SIGNER(keyring, 'sudo');
});

afterAll(async () => {
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/src/test/set-gate-faucet.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ describeIf((global as any).CREDITCOIN_EXECUTE_SETUP_AUTHORITY, 'SetGateFaucet',

beforeAll(async () => {
ccApi = await creditcoinApi((global as any).CREDITCOIN_API_URL);
sudoSigner = (global as any).CREDITCOIN_CREATE_SIGNER(keyring, 'lender');
sudoSigner = (global as any).CREDITCOIN_CREATE_SIGNER(keyring, 'sudo');
});

afterAll(async () => {
Expand Down

0 comments on commit 2ad4939

Please sign in to comment.