Should EVMC_DELEGATED propagate through DELEGATECALL / CALLCODE?

Đang mở
#1,306 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
25/100
Loại issue
Tính năng
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
cpp
Lĩnh vực
blockchain

Hướng nghiên cứu

Start with the linked lib/evmone/instructions_calls.cpp lines 120–123 and trace how call-frame flags are set for DELEGATECALL and CALLCODE. The issue leaves the desired propagation semantics unresolved, so first determine how EVMC_DELEGATED should behave in both cases it describes; done means that behavior is agreed and covered by tests.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

When a delegated EOA performs DELEGATECALL / CALLCODE, the EVMC_DELEGATED flag is lost -

https://github.com/ipsilon/evmone/blob/9ce7bfa91b751c366143808b779f09f729e09195/lib/evmone/instructions_calls.cpp#L120-L123

Should this be the case? Technically the DELEGATECALL / CALLCODE is called within the context of the delegated EOA, so it would make sense that DELEGATECALL / CALLCODE should inherit the EVMC_DELEGATED flag from its parent call frame.

Also another case - If a call frame without EVMC_DELEGATED flag executes a DELEGATECALL to a delegated EOA, should the DELEGATECALL call frame have the EVMC_DELEGATED flag?

Ngôn ngữ chính
C++
Star
979
Fork
340
Merge trung bình
12 giờ 16 phút
Pull request đã merge (30 ngày)
25

Chuẩn bị môi trường

  • Có Dockerfile hoặc tệp Docker Compose
  • Không có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của ipsilon/evmone

Tất cả issue của ipsilon/evmone

Issue tương tự

Thêm issue về C++

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.