Skip to content

Commit

Permalink
fix hightlight
Browse files Browse the repository at this point in the history
  • Loading branch information
oveddan committed Aug 9, 2024
1 parent fe7033d commit 0e99ffb
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions docs/snippets/protocol-sdk/create/mintFromCreate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,20 @@ import { contractAddress } from "./createNewContract";

const creatorClient = createCreatorClient({ chainId, publicClient });

const { parameters: createParameters, prepareMint } =
await creatorClient.create1155OnExistingContract({
// by providing a contract address, the token will be created on an existing contract
// at that address
contractAddress, // [!code hl]
token: {
// token metadata uri
tokenMetadataURI: "ipfs://DUMMY/token.json",
},
// account to execute the transaction (the creator)
account: creatorAccount,
});
const {
parameters: createParameters,
prepareMint, // [!code hl]
} = await creatorClient.create1155OnExistingContract({
// by providing a contract address, the token will be created on an existing contract
// at that address
contractAddress,
token: {
// token metadata uri
tokenMetadataURI: "ipfs://DUMMY/token.json",
},
// account to execute the transaction (the creator)
account: creatorAccount,
});

const { request } = await publicClient.simulateContract(createParameters);

Expand Down

0 comments on commit 0e99ffb

Please sign in to comment.