Skip to content

Commit cc45a61

Browse files
committed
Add stencil calldata
1 parent f554cb9 commit cc45a61

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

frontend/src/tabs/stencils/StencilCreationPanel.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,8 @@ const StencilCreationPanel = (props) => {
1818
if (!props.address || !props.canvasFactoryContract || !props.account)
1919
return;
2020
// TODO: Validate the position, width, and height
21-
console.log('Adding Stencil:', position, width, height);
21+
console.log('Adding Stencil:', hash, position, width, height);
2222
let addStencilParams = {
23-
world_id: worldId,
2423
hash: hash,
2524
width: width,
2625
height: height,
@@ -29,7 +28,8 @@ const StencilCreationPanel = (props) => {
2928
const addStencilCalldata = props.canvasFactoryContract.populate(
3029
'add_stencil',
3130
{
32-
stencil_metadata: addStencilParams
31+
canvas_id: worldId,
32+
stencil: addStencilParams
3333
}
3434
);
3535
const { suggestedMaxFee } = await props.estimateInvokeFee({

0 commit comments

Comments
 (0)