以太坊Pectra升级上线带来新风险 用户需警惕合约代码差异

:rotating_light: Ethereum’s Pectra upgrade (EIP-7702) is live — a major leap forward, but new functionality brings new risks. Here’s what users, wallet providers, developers, and exchanges should watch out for: :brain:

:shield: For Users:
:white_check_mark:Private key protection should always be a priority.
:white_check_mark:Be aware that the same contract address on different chains may not always have the same contract code.
:white_check_mark:Understand the details of the delegated target before proceeding.

:mag: For Wallet providers:
:white_check_mark:Check if the chain of the delegation matches the current network.
:white_check_mark:Warn users about the risks of delegations signed with a chainID of 0 that could be replayed across different chains.
:white_check_mark:Display the target contract when users sign delegations to reduce the risk of phishing attacks.

:technologist: For Developers:
:white_check_mark:Ensure permission checks are performed during wallet initialization (e.g., via ecrecover to verify the signing address).
:white_check_mark:Follow the Namespace Formula proposed in ERC-7201 to mitigate storage conflicts.
:white_check_mark:Don’t assume that tx.origin will always be an EOA, using msg.sender == tx.origin as a defense against reentrancy attacks will no longer be effective.
:white_check_mark:Ensure that the target contract for the user’s delegation implements the necessary callback functions to ensure compatibility with mainstream tokens.

:bank: For CEXs:
:white_check_mark:Run trace checks on deposits to mitigate the risk of fake deposits from smart contracts.

:books: Full best practices & in-depth analysis:

https://t.co/IvphpT07rA
https://www.bipu123.com/t/topic/63995