Skip to content

Commit

Permalink
chore: make content_type type optional
Browse files Browse the repository at this point in the history
  • Loading branch information
fedeerbes committed Jan 18, 2024
1 parent eb42d90 commit ab52e72
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion hooks/inscriptions/useInscriptionExecute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ type Props = {
changeAddress: string;
contentString?: string;
contentBase64?: string;
contentType: string;
contentType?: string;
feeRate: number;
network: NetworkType;
serviceFee?: number;
Expand Down
2 changes: 1 addition & 1 deletion hooks/inscriptions/useInscriptionFees.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ type CommitValueBreakdown = {
type Props = {
addressUtxos: UTXO[] | undefined;
content: string;
contentType: string;
contentType?: string;
feeRate: number;
revealAddress: string;
finalInscriptionValue?: number;
Expand Down
2 changes: 1 addition & 1 deletion transactions/bitcoin/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export type IOInscription = {
offset: number;
fromAddress: string;
number: number;
contentType: string;
contentType?: string;
};

export type IOSatribute = {
Expand Down
4 changes: 2 additions & 2 deletions transactions/inscriptionMint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export enum InscriptionErrorCode {
type EstimateProps = {
addressUtxos: UTXO[];
content: string;
contentType: string;
contentType?: string;
revealAddress: string;
feeRate: number;
finalInscriptionValue?: number;
Expand Down Expand Up @@ -55,7 +55,7 @@ type ExecuteProps = {
addressUtxos: UTXO[];
contentString?: string;
contentBase64?: string;
contentType: string;
contentType?: string;
revealAddress: string;
feeRate: number;
finalInscriptionValue?: number;
Expand Down
2 changes: 1 addition & 1 deletion types/api/ordinals/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export interface Inscription {
sat_rarity: string;
sat_coinbase_height: number;
mime_type: string;
content_type: string;
content_type?: string;
content_length: number;
timestamp: number;
tx_id: string;
Expand Down
4 changes: 2 additions & 2 deletions types/api/xverseInscribe/inscription.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ export type InscriptionCostEstimateRequest = {
feeRate: number;
inscriptionValue: number;
contentLength: number;
contentType: string;
contentType?: string;
repetitions?: number;
};

Expand All @@ -19,7 +19,7 @@ type InscriptionCreateOrderBaseRequest = {
feeRate: number;
revealAddress: string;
inscriptionValue?: number;
contentType: string;
contentType?: string;
repetitions?: number;
appServiceFee?: number;
appServiceFeeAddress?: string;
Expand Down

0 comments on commit ab52e72

Please sign in to comment.