Update collection creation summary logic

This commit is contained in:
Serkan Reis 2024-01-31 10:17:53 +03:00
parent 8ceacb6725
commit 92ce752b15
3 changed files with 6 additions and 6 deletions

View File

@ -70,8 +70,8 @@ export const baseFactory = (client: SigningCosmWasmClient, txSigner: string): Ba
) )
return { return {
baseMinterAddress: result.logs[0].events[5].attributes[0].value, baseMinterAddress: result.logs[0].events[16].attributes[0].value,
sg721Address: result.logs[0].events[5].attributes[2].value, sg721Address: result.logs[0].events[18].attributes[0].value,
transactionHash: result.transactionHash, transactionHash: result.transactionHash,
logs: result.logs, logs: result.logs,
} }

View File

@ -61,8 +61,8 @@ export const openEditionFactory = (client: SigningCosmWasmClient, txSigner: stri
const result = await client.execute(senderAddress, contractAddress, msg, 'auto', '', funds) const result = await client.execute(senderAddress, contractAddress, msg, 'auto', '', funds)
return { return {
openEditionMinterAddress: result.logs[0].events[5].attributes[0].value, openEditionMinterAddress: result.logs[0].events[16].attributes[0].value,
sg721Address: result.logs[0].events[5].attributes[2].value, sg721Address: result.logs[0].events[18].attributes[0].value,
transactionHash: result.transactionHash, transactionHash: result.transactionHash,
logs: result.logs, logs: result.logs,
} }

View File

@ -63,8 +63,8 @@ export const vendingFactory = (client: SigningCosmWasmClient, txSigner: string):
const result = await client.execute(senderAddress, contractAddress, msg, 'auto', '', funds) const result = await client.execute(senderAddress, contractAddress, msg, 'auto', '', funds)
return { return {
vendingMinterAddress: result.logs[0].events[5].attributes[0].value, vendingMinterAddress: result.logs[0].events[16].attributes[0].value,
sg721Address: result.logs[0].events[5].attributes[2].value, sg721Address: result.logs[0].events[18].attributes[0].value,
transactionHash: result.transactionHash, transactionHash: result.transactionHash,
logs: result.logs, logs: result.logs,
} }