From 3bdf3aaab205291bb44fb43c726b7547c35a3bf9 Mon Sep 17 00:00:00 2001 From: donaldinho Date: Wed, 26 Feb 2025 20:23:50 +0000 Subject: [PATCH] fixes and bump version --- examples/default/anvil.Dockerfile | 2 ++ examples/demo-canvas/tasks/enable-bubble-minting.ts | 4 ++-- packages/create-patchwork/package.json | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/examples/default/anvil.Dockerfile b/examples/default/anvil.Dockerfile index 26bfe64..1f5c013 100644 --- a/examples/default/anvil.Dockerfile +++ b/examples/default/anvil.Dockerfile @@ -1,5 +1,7 @@ FROM --platform=linux/amd64 ghcr.io/foundry-rs/foundry:latest +USER root + RUN apt-get update && \ apt-get install -y curl && \ rm -rf /var/lib/apt/lists/* diff --git a/examples/demo-canvas/tasks/enable-bubble-minting.ts b/examples/demo-canvas/tasks/enable-bubble-minting.ts index 19a01f9..526e119 100644 --- a/examples/demo-canvas/tasks/enable-bubble-minting.ts +++ b/examples/demo-canvas/tasks/enable-bubble-minting.ts @@ -143,7 +143,7 @@ export async function enableBubbleMintTask({ deployConfig, deployedContracts }: const shouldEnable = await askQuestion('\nDo you want to enable minting for bubbles? (y/n): '); if (shouldEnable.toLowerCase() === 'y') { - enableMint(publicClient, deployConfig.patchworkProtocol as `0x${string}`, bubbleContractAddress, account, walletClient); + await enableMint(publicClient, deployConfig.patchworkProtocol as `0x${string}`, bubbleContractAddress, account, walletClient); } } } catch (error) { @@ -153,7 +153,7 @@ export async function enableBubbleMintTask({ deployConfig, deployedContracts }: //add bubble as operator of scope try { - addOperator(deployConfig.patchworkProtocol as `0x${string}`, 'canvas-demo', bubbleContractAddress, publicClient, account, walletClient); + await addOperator(deployConfig.patchworkProtocol as `0x${string}`, 'canvas-demo', bubbleContractAddress, publicClient, account, walletClient); } catch (error) { console.error('Error adding bubble as operator of scope:', error); throw error; diff --git a/packages/create-patchwork/package.json b/packages/create-patchwork/package.json index 052f309..f899f5a 100644 --- a/packages/create-patchwork/package.json +++ b/packages/create-patchwork/package.json @@ -1,6 +1,6 @@ { "name": "create-patchwork", - "version": "0.4.2", + "version": "0.4.3", "description": "", "type": "module", "main": "dist/index.js",