Temporary update for hardcoded base minter creation fee

This commit is contained in:
Serkan Reis 2023-03-31 19:38:26 +03:00
parent 3efad8a1fd
commit babdb5fb94
5 changed files with 5 additions and 5 deletions

View File

@ -7,7 +7,7 @@ NEXT_PUBLIC_VENDING_MINTER_CODE_ID=1909
NEXT_PUBLIC_BASE_MINTER_CODE_ID=1910
NEXT_PUBLIC_VENDING_FACTORY_ADDRESS="stars1ynec878x5phexq3hj4zdgvp6r5ayfmxks38kvunwyjugqn3hqeqq3cgtuw"
NEXT_PUBLIC_VENDING_FACTORY_UPDATABLE_ADDRESS="stars1fnfywcnzzwledr93at65qm8gf953tjxgh6u2u4r8n9vsdv7u75eqe7ecn3"
NEXT_PUBLIC_BASE_FACTORY_ADDRESS="stars1sr37phnuahzsc6tpner9875g3fy69khlgvvyzgs2vjtuupw6lffqd7lark"
NEXT_PUBLIC_BASE_FACTORY_ADDRESS="stars1l0ylnyytlake550wyue5km77zzrqwfas3hna9agavjrzs73h33nqrx8zlg"
NEXT_PUBLIC_BASE_FACTORY_UPDATABLE_ADDRESS="stars13pw8r33dsnghlxfj2upaywf38z2fc6npuw9maq9e5cpet4v285sscgzjp2"
NEXT_PUBLIC_SG721_NAME_ADDRESS="stars1fx74nkqkw2748av8j7ew7r3xt9cgjqduwn8m0ur5lhe49uhlsasszc5fhr"
NEXT_PUBLIC_WHITELIST_CODE_ID=1913

View File

@ -91,7 +91,7 @@ export const baseFactory = (client: SigningCosmWasmClient, txSigner: string): Ba
sender: txSigner,
contract: contractAddress,
msg,
funds: [coin(updatable ? '3000000000' : '1000000000', 'ustars')],
funds: [coin(updatable ? '3000000000' : '250000000', 'ustars')],
}
}

View File

@ -249,7 +249,7 @@ export const baseMinter = (client: SigningCosmWasmClient, txSigner: string): Bas
label: string,
): Promise<InstantiateResponse> => {
const result = await client.instantiate(senderAddress, codeId, initMsg, label, 'auto', {
funds: [coin('1000000000', 'ustars')],
funds: [coin('250000000', 'ustars')],
})
return {
contractAddress: result.contractAddress,

View File

@ -503,7 +503,7 @@ const CollectionCreationPage: NextPage = () => {
messages: baseFactoryMessages,
txSigner: wallet.address,
msg,
funds: [coin(collectionDetails?.updatable ? '3000000000' : '1000000000', 'ustars')],
funds: [coin(collectionDetails?.updatable ? '3000000000' : '250000000', 'ustars')],
updatable: collectionDetails?.updatable,
}
await baseFactoryDispatchExecute(payload)

View File

@ -145,7 +145,7 @@ const BaseMinterInstantiatePage: NextPage = () => {
return toast.promise(
contract
.use(BASE_FACTORY_ADDRESS)
?.createBaseMinter(wallet.address, msg, [coin('1000000000', 'ustars')]) as Promise<CreateBaseMinterResponse>,
?.createBaseMinter(wallet.address, msg, [coin('250000000', 'ustars')]) as Promise<CreateBaseMinterResponse>,
{
loading: 'Instantiating contract...',
error: 'Instantiation failed!',