Skip to content

Commit

Permalink
Add stencil calldata
Browse files Browse the repository at this point in the history
  • Loading branch information
b-j-roberts committed Jan 18, 2025
1 parent f554cb9 commit cc45a61
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frontend/src/tabs/stencils/StencilCreationPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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({
Expand Down

0 comments on commit cc45a61

Please sign in to comment.