Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use 'sudo' argument when creating sudoSigner in tests #1436

Merged
merged 1 commit into from
Dec 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading