diff --git a/lib/protocolSdk/create/1155-create-helper.ts b/lib/protocolSdk/create/1155-create-helper.ts index 8eb64a66..96654536 100644 --- a/lib/protocolSdk/create/1155-create-helper.ts +++ b/lib/protocolSdk/create/1155-create-helper.ts @@ -332,12 +332,7 @@ function prepareSetupActions({ }); const setupActions = getAdditionalSetupActions - ? [ - ...getAdditionalSetupActions({ - tokenId: nextTokenId, - }), - ...tokenSetupActions, - ] + ? [...getAdditionalSetupActions, ...tokenSetupActions] : tokenSetupActions; return { minter, newToken, setupActions }; diff --git a/lib/protocolSdk/create/types.ts b/lib/protocolSdk/create/types.ts index c5ee415a..8b87454a 100644 --- a/lib/protocolSdk/create/types.ts +++ b/lib/protocolSdk/create/types.ts @@ -66,7 +66,7 @@ export type SalesConfigParamsType = export type CreateNew1155ParamsBase = { account: Address | Account; - getAdditionalSetupActions?: (args: { tokenId: bigint }) => Hex[]; + getAdditionalSetupActions?: Hex[]; token: CreateNew1155TokenProps; }; diff --git a/lib/zora/create1155.ts b/lib/zora/create1155.ts index 387acba3..83517a5b 100644 --- a/lib/zora/create1155.ts +++ b/lib/zora/create1155.ts @@ -36,14 +36,12 @@ export async function create1155({ } as SalesConfigParamsType, }, account: account as Address, - getAdditionalSetupActions: () => { - return [ - encodeFunctionData({ - abi: zoraCreator1155ImplABI, - functionName: "addPermission", - args: [BigInt(0), smartAccount, BigInt(PERMISSION_BIT_ADMIN)], - }), - ]; - }, + getAdditionalSetupActions: [ + encodeFunctionData({ + abi: zoraCreator1155ImplABI, + functionName: "addPermission", + args: [BigInt(0), smartAccount, BigInt(PERMISSION_BIT_ADMIN)], + }), + ], }); }