Skip to content

Update templates#64

Merged
AyushBherwani1998 merged 4 commits intomainfrom
feat/v0.13
Sep 18, 2025
Merged

Update templates#64
AyushBherwani1998 merged 4 commits intomainfrom
feat/v0.13

Conversation

@AyushBherwani1998
Copy link
Copy Markdown
Member

Description

  • Update templates to latest v0.13
  • Omits ERC-7715 template

@AyushBherwani1998 AyushBherwani1998 requested review from a team as code owners September 16, 2025 17:17
Copy link
Copy Markdown

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Component Parameter Mismatch

The RedeemDelegationCodeBlock component displays createExecution() without parameters. This is inconsistent with the updated delegationUtils.ts implementation, which now expects createExecution({ target: zeroAddress }).

packages/create-gator-app/templates/nextjs/farcaster-starter/src/components/RedeemDelegationCodeBlock.tsx#L8-L27

https://github.com/MetaMask/gator-examples/blob/2eee853d7d80ac308c16c96bdb1f1f4d1cc9a7fe/packages/create-gator-app/templates/nextjs/farcaster-starter/src/components/RedeemDelegationCodeBlock.tsx#L8-L27

Fix in Cursor Fix in Web


{" "}
<Property>caveats</Property>: <Variable>caveats</Variable>,
<Property>environment</Property>: <Variable>delegateSmartAccount</Variable>.
<Property>environment</Property>,
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Incorrect Environment Reference in Delegation Code

The CreateDelegationCodeBlock.tsx example uses delegateSmartAccount.environment when creating a delegation. This should be smartAccount.environment (the delegator's environment) to align with the delegator.environment expected by delegationUtils.ts.

Additional Locations (2)

Fix in Cursor Fix in Web

@socket-security
Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updated@​metamask/​delegation-toolkit@​0.11.0 ⏵ 0.13.089 +310095 -496 +2100

View full report

Copy link
Copy Markdown
Contributor

@jeffsmale90 jeffsmale90 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@AyushBherwani1998 AyushBherwani1998 merged commit c3a4a83 into main Sep 18, 2025
13 checks passed
@AyushBherwani1998 AyushBherwani1998 deleted the feat/v0.13 branch September 18, 2025 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants