Skip to content

Commit

Permalink
run linter
Browse files Browse the repository at this point in the history
  • Loading branch information
Imod7 committed Nov 4, 2024
1 parent 44017f3 commit eff68c5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 13 deletions.
6 changes: 3 additions & 3 deletions src/services/test-helpers/mock/mockDryRunError.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ export const mockDryRunCallError = {
executionResult: {
Err: {
Token: 'NoFunds',
}
},
},
emittedEvents: [],
localXcm: null,
forwardedXcms: []
}
forwardedXcms: [],
},
};
14 changes: 4 additions & 10 deletions src/services/transaction/TransactionDryRunService.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.

import type { PostDispatchInfo, DispatchError } from '@polkadot/types/interfaces';

import type { ApiPromise } from '@polkadot/api';
import type { DispatchError, PostDispatchInfo } from '@polkadot/types/interfaces';

import { TransactionResultType } from '../../types/responses';
import { blockHash22887036, mockAssetHubWestendApi, mockDryRunCall, mockDryRunError } from '../test-helpers/mock';
import { mockDryRunCallResult } from '../test-helpers/mock/mockDryRunCall';
Expand Down Expand Up @@ -68,10 +68,7 @@ describe('TransactionDryRunService', () => {
const callTx =
'0x1f0801010100411f0100010100c224aad9c6f3bbd784120e9fceee5bfd22a62c69144ee673f76d6a34d280de160104000002043205040091010000000000' as `0x${string}`;

const executionResult = await new TransactionDryRunService(mockAHWApi).dryRuntExtrinsic(
sendersAddress,
callTx,
);
const executionResult = await new TransactionDryRunService(mockAHWApi).dryRuntExtrinsic(sendersAddress, callTx);

expect(executionResult?.at.hash).toEqual('');
const resData = executionResult?.result.result as PostDispatchInfo;
Expand All @@ -91,10 +88,7 @@ describe('TransactionDryRunService', () => {
const callTx =
'0x0a0000fe06fc3db07fb1a4ce89a76eaed1e54519b5940d2652b8d6794ad4ddfcdcb16c0f00d0eca2b99401' as `0x${string}`;

const executionResult = await new TransactionDryRunService(mockAHWApiErr).dryRuntExtrinsic(
sendersAddress,
callTx,
);
const executionResult = await new TransactionDryRunService(mockAHWApiErr).dryRuntExtrinsic(sendersAddress, callTx);

expect(executionResult?.at.hash).toEqual('');
const resData = executionResult?.result.result as DispatchError;
Expand Down

0 comments on commit eff68c5

Please sign in to comment.