diff --git a/src/validate/methods/asset.ts b/src/validate/methods/asset.ts index cb3c1e85..2969c4a7 100644 --- a/src/validate/methods/asset.ts +++ b/src/validate/methods/asset.ts @@ -3,17 +3,14 @@ import { assetCode } from "./assetCode"; import { publicKey } from "./publicKey"; import { AssetObjectValue } from "@/types/types"; -export const asset = ( - asset: AssetObjectValue | undefined, - isRequired?: boolean, -) => { +export const asset = (asset: AssetObjectValue | undefined) => { if (asset?.type && asset.type === "native") { return false; } const invalid = Object.entries({ - code: assetCode(asset?.code || "", asset?.type, isRequired), - issuer: publicKey(asset?.issuer || "", isRequired), + code: assetCode(asset?.code || "", asset?.type), + issuer: publicKey(asset?.issuer || ""), }).reduce((res, cur) => { const [key, value] = cur;