Merge pull request #289 from public-awesome/develop

Sync dev > main
This commit is contained in:
Serkan Reis 2023-12-08 10:45:51 +02:00 committed by GitHub
commit cbf401638a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 12 additions and 4 deletions

View File

@ -27,6 +27,7 @@ export const WalletProvider = ({ children }: { children: ReactNode }) => {
rest: ['https://rest.elgafar-1.stargaze-apis.com/'],
},
},
isLazy: true,
}}
sessionOptions={{
duration: 1000 * 60 * 60 * 12, // 12 hours

View File

@ -139,6 +139,7 @@ export const OpenEditionMinterCreator = ({
collectionDetails?.updatable,
factoryAddressForSelectedDenom,
updatableFactoryAddressForSelectedDenom,
wallet.isWalletConnected,
],
)

View File

@ -138,12 +138,12 @@ const CollectionCreationPage: NextPage = () => {
const vendingFactoryMessages = useMemo(
() => vendingFactoryContract?.use(vendingFactoryAddress as string),
[vendingFactoryContract, wallet.address, vendingFactoryAddress],
[vendingFactoryContract, wallet.address, vendingFactoryAddress, wallet.isWalletConnected],
)
const baseFactoryMessages = useMemo(
() => baseFactoryContract?.use(BASE_FACTORY_ADDRESS),
[baseFactoryContract, wallet.address],
[baseFactoryContract, wallet.address, wallet.isWalletConnected],
)
const [uploading, setUploading] = useState(false)

View File

@ -249,7 +249,10 @@ const BadgeHubExecutePage: NextPage = () => {
const showPubkeyField = isEitherType(type, ['mint_by_keys'])
const showPrivateKeyField = isEitherType(type, ['mint_by_key', 'mint_by_keys'])
const messages = useMemo(() => contract?.use(contractState.value), [contract, wallet.address, contractState.value])
const messages = useMemo(
() => contract?.use(contractState.value),
[contract, wallet.address, contractState.value, wallet.isWalletConnected],
)
const payload: DispatchExecuteArgs = {
badge: {
manager: badge?.manager || managerState.value,

View File

@ -56,7 +56,10 @@ const BaseMinterExecutePage: NextPage = () => {
const showDateField = type === 'update_start_trading_time'
const showTokenUriField = type === 'mint'
const messages = useMemo(() => contract?.use(contractState.value), [contract, wallet.address, contractState.value])
const messages = useMemo(
() => contract?.use(contractState.value),
[contract, wallet.address, contractState.value, wallet.isWalletConnected],
)
const payload: DispatchExecuteArgs = {
startTime: timestamp ? (timestamp.getTime() * 1_000_000).toString() : '',
tokenUri: tokenUriState.value,