Skip to content

Feat/std call helpers - #1601

Merged
sbillig merged 1 commit into
masterfrom
feat/std-call-helpers
Sep 28, 2026
Merged

sbillig merged 1 commit into
masterfrom
feat/std-call-helpers

Conversation

@cburgdorf

@cburgdorf cburgdorf commented Sep 25, 2026 •

Copy link
Copy Markdown
Collaborator

add bounded typed calls, send_value and ERC-165 probes

  • Call::try_call_into and Call::try_static_into send a typed message
    and copy at most the capacity of a caller-provided buffer, so a callee
    cannot force a large returndata copy; the outcome still reports the
    full returndata length.
  • Call::send_value sends ether with empty calldata and
    Call::try_call_raw forwards raw calldata.
  • Call::static, Call::try_static and Address::static now only need
    a read-only Call effect.
  • std::evm::erc165 implements OpenZeppelin's ERC165Checker probes
    (supports_erc165, supports_interface,
    supports_interface_unchecked).
  • Address::from_word_truncate mirrors Solidity's
    address(uint160(word)).

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 25, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-28T08:40:10.483392Z 08aa444 New commits
🔒 Security Review ✅ Completed 2026-09-28T08:40:55.066950Z 08aa444 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

- `Call::try_call_into` and `Call::try_static_into` send a typed message
  and copy at most the capacity of a caller-provided buffer, so a callee
  cannot force a large returndata copy; the outcome still reports the
  full returndata length.
- `Call::send_value` sends ether with empty calldata and
  `Call::try_call_raw` forwards raw calldata.
- `Call::static`, `Call::try_static` and `Address::static` now only need
  a read-only `Call` effect.
- `std::evm::erc165` implements OpenZeppelin's `ERC165Checker` probes
  (`supports_erc165`, `supports_interface`,
  `supports_interface_unchecked`).
- `Address::from_word_truncate` mirrors Solidity's
  `address(uint160(word))`.
@cburgdorf
cburgdorf force-pushed the feat/std-call-helpers branch from 83daf1d to 08aa444 Compare September 28, 2026 08:37
@cburgdorf
cburgdorf requested a review from sbillig September 28, 2026 09:58
@sbillig
sbillig merged commit dd20f78 into master Sep 28, 2026
9 checks passed
@sbillig
sbillig deleted the feat/std-call-helpers branch September 28, 2026 19:16
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