From 5273198ea0c0b0d4f10a440dfa2a7cb3a4c553e0 Mon Sep 17 00:00:00 2001 From: Yuri Gii Date: Wed, 9 Feb 2022 13:46:53 +0100 Subject: [PATCH] split resadd types --- src/rmrk2.0.0/classes/nft.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/rmrk2.0.0/classes/nft.ts b/src/rmrk2.0.0/classes/nft.ts index 15c24ba2..9f49cf4c 100644 --- a/src/rmrk2.0.0/classes/nft.ts +++ b/src/rmrk2.0.0/classes/nft.ts @@ -193,7 +193,7 @@ export class NFT { }::${VERSION}::${namespace}::${this.getId()}::${unicode}`; } - public resadd(resource: Resource): string { + public resadd(resource: RessAddResouce): string { if (!this.block) { throw new Error( "You can only add resource to an existing NFT. If you just minted this, please load a new, separate instance as the block number is an important part of an NFT's ID." @@ -283,19 +283,22 @@ export interface Reactionmap { [unicode: string]: string[]; } -export interface Resource { +export interface RessAddResouce { id?: string; base?: string; src?: string; parts?: string[]; metadata?: string; slot?: string; - pending?: boolean; thumb?: string; theme?: Theme; themeId?: string; } +export interface Resource extends RessAddResouce { + pending?: boolean; +} + export interface IResourceConsolidated { id: string; base?: string;