From cc45a61d6e967f8c6a95df0ba419ab8ed26e20bf Mon Sep 17 00:00:00 2001 From: Brandon Roberts Date: Sat, 18 Jan 2025 08:31:50 -0600 Subject: [PATCH] Add stencil calldata --- frontend/src/tabs/stencils/StencilCreationPanel.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/tabs/stencils/StencilCreationPanel.js b/frontend/src/tabs/stencils/StencilCreationPanel.js index 997d9136..60e458c8 100644 --- a/frontend/src/tabs/stencils/StencilCreationPanel.js +++ b/frontend/src/tabs/stencils/StencilCreationPanel.js @@ -18,9 +18,8 @@ const StencilCreationPanel = (props) => { if (!props.address || !props.canvasFactoryContract || !props.account) return; // TODO: Validate the position, width, and height - console.log('Adding Stencil:', position, width, height); + console.log('Adding Stencil:', hash, position, width, height); let addStencilParams = { - world_id: worldId, hash: hash, width: width, height: height, @@ -29,7 +28,8 @@ const StencilCreationPanel = (props) => { const addStencilCalldata = props.canvasFactoryContract.populate( 'add_stencil', { - stencil_metadata: addStencilParams + canvas_id: worldId, + stencil: addStencilParams } ); const { suggestedMaxFee } = await props.estimateInvokeFee({