Skip to content

Commit

Permalink
fix: paths
Browse files Browse the repository at this point in the history
  • Loading branch information
ratik committed Dec 12, 2023
1 parent d09aba6 commit ae26907
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 4 deletions.
6 changes: 6 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
}
}
8 changes: 7 additions & 1 deletion integration_tests/src/testcases/interceptor-authz.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
setupAuthzExtension,
setupStakingExtension,
} from '@cosmjs/stargate';
import { join } from 'path';
import { Tendermint34Client } from '@cosmjs/tendermint-rpc';
import { SigningCosmWasmClient } from '@cosmjs/cosmwasm-stargate';
import { Client as NeutronClient } from '@neutron-org/client-ts';
Expand Down Expand Up @@ -106,7 +107,12 @@ describe('Interchain interceptor with AuthZ support', () => {
const { client, account, gaiaAccount } = context;
const res = await client.upload(
account.address,
fs.readFileSync('../artifacts/lido_interchain_interceptor_authz.wasm'),
fs.readFileSync(
join(
__dirname,
'../../../artifacts/lido_interchain_interceptor_authz.wasm',
),
),
1.5,
);
expect(res.codeId).toBeGreaterThan(0);
Expand Down
5 changes: 4 additions & 1 deletion integration_tests/src/testcases/interceptor.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
StakingExtension,
setupStakingExtension,
} from '@cosmjs/stargate';
import { join } from 'path';
import { Tendermint34Client } from '@cosmjs/tendermint-rpc';
import { SigningCosmWasmClient } from '@cosmjs/cosmwasm-stargate';
import { Client as NeutronClient } from '@neutron-org/client-ts';
Expand Down Expand Up @@ -95,7 +96,9 @@ describe('Interchain interceptor', () => {
const { client, account } = context;
const res = await client.upload(
account.address,
fs.readFileSync('../artifacts/lido_interchain_interceptor.wasm'),
fs.readFileSync(
join(__dirname, '../../../artifacts/lido_interchain_interceptor.wasm'),
),
1.5,
);
expect(res.codeId).toBeGreaterThan(0);
Expand Down
5 changes: 4 additions & 1 deletion integration_tests/src/testcases/poc-stargate.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
setupBankExtension,
IndexedTx,
} from '@cosmjs/stargate';
import { join } from 'path';
import { Tendermint34Client } from '@cosmjs/tendermint-rpc';
import { SigningCosmWasmClient } from '@cosmjs/cosmwasm-stargate';
import { Client as NeutronClient } from '@neutron-org/client-ts';
Expand Down Expand Up @@ -95,7 +96,9 @@ describe('POC Stargate', () => {
const { client, account } = context;
const res = await client.upload(
account.address,
fs.readFileSync('../artifacts/lido_stargate_poc.wasm'),
fs.readFileSync(
join(__dirname, '../../../artifacts/lido_stargate_poc.wasm'),
),
1.5,
);
expect(res.codeId).toBeGreaterThan(0);
Expand Down
5 changes: 4 additions & 1 deletion integration_tests/src/testcases/validators-stats.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {
setupSlashingExtension,
setupStakingExtension,
} from '@cosmjs/stargate';
import { join } from 'path';
import { Tendermint34Client } from '@cosmjs/tendermint-rpc';
import { SigningCosmWasmClient } from '@cosmjs/cosmwasm-stargate';
import { Client as NeutronClient } from '@neutron-org/client-ts';
Expand Down Expand Up @@ -140,7 +141,9 @@ describe('Validators stats', () => {
const { client, account } = context;
const res = await client.upload(
account.address,
fs.readFileSync('../artifacts/lido_validators_stats.wasm'),
fs.readFileSync(
join(__dirname, '../../../artifacts/lido_validators_stats.wasm'),
),
1.5,
);
expect(res.codeId).toBeGreaterThan(0);
Expand Down

0 comments on commit ae26907

Please sign in to comment.