Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Fix build on branch feature/6917-implement-nft-module #8777

Merged
merged 2 commits into from
Jul 28, 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: 0 additions & 2 deletions framework/src/modules/nft/internal_method.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import { UserStore } from './stores/user';
import { CROSS_CHAIN_COMMAND_NAME_TRANSFER, MODULE_NAME_NFT, NFT_NOT_LOCKED } from './constants';
import { EscrowStore } from './stores/escrow';
import { TransferCrossChainEvent } from './events/transfer_cross_chain';
import { CCM_STATUS_OK } from '../token/constants';
import { crossChainNFTTransferMessageParamsSchema } from './schemas';

export class InternalMethod extends BaseMethod {
Expand Down Expand Up @@ -166,7 +165,6 @@ export class InternalMethod extends BaseMethod {
CROSS_CHAIN_COMMAND_NAME_TRANSFER,
receivingChainID,
messageFee,
CCM_STATUS_OK,
codec.encode(crossChainNFTTransferMessageParamsSchema, {
nftID,
senderAddress,
Expand Down
3 changes: 1 addition & 2 deletions framework/src/modules/nft/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { validator } from '@liskhq/lisk-validator';
import { GenesisBlockExecuteContext } from '../../state_machine';
import { ModuleInitArgs, ModuleMetadata } from '../base_module';
import { BaseInteroperableModule } from '../interoperability';
import { InteroperabilityMethod } from '../token/types';
import { InteroperabilityMethod, FeeMethod, GenesisNFTStore, TokenMethod } from './types';
import { NFTInteroperableMethod } from './cc_method';
import { NFTEndpoint } from './endpoint';
import { AllNFTsFromChainSupportedEvent } from './events/all_nfts_from_chain_suported';
Expand Down Expand Up @@ -59,7 +59,6 @@ import { EscrowStore } from './stores/escrow';
import { NFTStore } from './stores/nft';
import { SupportedNFTsStore } from './stores/supported_nfts';
import { UserStore } from './stores/user';
import { FeeMethod, GenesisNFTStore, TokenMethod } from './types';
import { CrossChainTransferCommand as CrossChainTransferMessageCommand } from './cc_commands/cc_transfer';
import { TransferCrossChainCommand } from './commands/transfer_cross_chain';
import { TransferCommand } from './commands/transfer';
Expand Down
1 change: 0 additions & 1 deletion framework/src/modules/nft/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ export interface InteroperabilityMethod {
crossChainCommand: string,
receivingChainID: Buffer,
fee: bigint,
status: number,
parameters: Buffer,
timestamp?: number,
): Promise<void>;
Expand Down
5 changes: 0 additions & 5 deletions framework/test/unit/modules/nft/internal_method.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ import {
TransferCrossChainEventData,
} from '../../../../src/modules/nft/events/transfer_cross_chain';
import { DestroyEvent, DestroyEventData } from '../../../../src/modules/nft/events/destroy';
import { CCM_STATUS_OK } from '../../../../src/modules/token/constants';
import { crossChainNFTTransferMessageParamsSchema } from '../../../../src/modules/nft/schemas';

describe('InternalMethod', () => {
Expand Down Expand Up @@ -294,7 +293,6 @@ describe('InternalMethod', () => {
CROSS_CHAIN_COMMAND_NAME_TRANSFER,
receivingChainID,
messageFee,
CCM_STATUS_OK,
ccmParameters,
);
});
Expand Down Expand Up @@ -363,7 +361,6 @@ describe('InternalMethod', () => {
CROSS_CHAIN_COMMAND_NAME_TRANSFER,
receivingChainID,
messageFee,
CCM_STATUS_OK,
ccmParameters,
);
});
Expand Down Expand Up @@ -449,7 +446,6 @@ describe('InternalMethod', () => {
CROSS_CHAIN_COMMAND_NAME_TRANSFER,
receivingChainID,
messageFee,
CCM_STATUS_OK,
ccmParameters,
);
});
Expand Down Expand Up @@ -525,7 +521,6 @@ describe('InternalMethod', () => {
CROSS_CHAIN_COMMAND_NAME_TRANSFER,
receivingChainID,
messageFee,
CCM_STATUS_OK,
ccmParameters,
);
});
Expand Down
Loading