Match transaction exception reasons in state and blockchain tests

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

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
静か
技術スタック
cpp

調査の方向性

Start by reading the statetest and blockchaintest transaction-rejection paths, then inspect how evmone's tx ErrorCode values relate to EEST TransactionException.* constants. Add checks that compare the expected transaction exception reason in both runners while preserving geth-compatible messages used by t8n/state-test output. Done means a transaction rejected for the wrong reason fails these tests.

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

説明

Neither test runner verifies the transaction rejection reason against the fixture's expectException:

  • statetest: expectException is reduced to a bool at load (o.exception = j.contains("expectException")); the runner only asserts the tx was rejected and the state root matches.
  • blockchaintest: an invalid block caused by a tx just continues on any rejection (if (!res.rejected.empty()) continue;) without comparing the reason.

So a transaction rejected for the wrong reason still passes. We now match block-level reasons (#1556); we should do the same for TransactionException.*.

Needs a mapping from evmone's tx ErrorCode (plain geth-style messages) to EEST TransactionException.* constants — those messages can't simply be renamed since t8n/state-test output relies on the geth-compatible form.

🤖 Generated with Claude Code

主要言語
C++
スター
979
フォーク
340
平均マージ
12時間 16分
マージ済み PR(30日)
25

環境構築

  • Dockerfile または Docker Compose ファイルあり
  • プルリクエストのテンプレートなし
  • コントリビューションガイドなし

はじめの一歩

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

ipsilon/evmone のほかの issue

ipsilon/evmone の issue をすべて見る

似ている issue

C++ の issue をもっと見る

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

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