ExactCalldataBatchEnforcer should pin terms target and value

オープン
#198 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

@SashaMIT がすでに取り組んでいます。

2026年8月8日 から。

  • #199 @SashaMIT による — オープン

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
74/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
静か
技術スタック
solidity

調査の方向性

まず ExactCalldataBatchEnforcer とその beforeHook を見つけ、次にそのバッチチェックロジックを ExactExecutionBatchEnforcer および issue に記載された ABI の用語と比較します。target の入れ替えとゼロ以外の値の付加に対する回帰テストを追加し、既存の Solidity テストスイートを実行して、どちらの場合も fail closed になることを確認します。

索引モデルが issue の本文から書いたものです。

説明

Summary

ExactCalldataBatchEnforcer terms are encoded as Execution[] (target, value, calldata), but beforeHook only compares calldata. A redeemer can reuse the same calldata against a different target (or attach native value).

Sibling enforcer ExactExecutionBatchEnforcer already pins the full execution. Single-call ExactCalldataEnforcer correctly treats terms as raw calldata only; the batch variant's terms ABI implies the fuller check.

Proposal

In the batch loop, also require target and value equality with the terms executions (fail closed), plus regression tests for target-swap and non-zero value.

Happy to open a PR against main.

主要言語
Solidity
スター
230
フォーク
122
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

MetaMask/delegation-framework のほかの issue

MetaMask/delegation-framework の issue をすべて見る

似ている issue

Blockchain の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。